1拼多多接口上传及相关功能(不含部分功能) 2拼多多选品

This commit is contained in:
wule committed 2026-03-31 18:14:55 +08:00
1 parent ff42506091
commit 07b912e9eb
37 files changed
+21117 -206

No files matched your search

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.ToolsManage
{
public class ADSLAccountParam
{
public bool IsUseAdsl { get; set; }
public string Account { get; set; }
public string Password { get; set; }
}
}
@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.ToolsManage
{
public class ProductMappingExportInfo : ProductMappingImportParam
{
/// <summary>
/// 虚拟上家来源,淘宝,京东,苏宁
/// </summary>
public string FakeMappingFrom { get; set; }
/// <summary>
/// 找到的真实的虚假上家商品ID
/// </summary>
public string FakeMappingProductId { get; set; }
/// <summary>
/// 商品真实上家数据Json
/// </summary>
public string ProductDataJson { get; set; }
/// <summary>
/// 虚拟上家产品价格
/// </summary>
public int FakeMappingProductPrice { get; set; }
public string FakeMappingProductMaxPrice { get; set; }
public string FakeMappingProductMinPrice { get; set; }
/// <summary>
/// 苏宁上家时的商家ID(搜索价格用)
/// </summary>
public string FakeMappingVendorId { get; set; }
/// <summary>
/// 运费
/// </summary>
public string PostFee { get; set; }
public string MappingQuery {get;set;}
}
}
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.ToolsManage
{
public class ProductMappingImportParam
{
/// <summary>
/// 商品来源,目前支持淘宝,拼多多(搜款网),阿里巴巴
/// </summary>
public string From { get; set; }
/// <summary>
/// 商品ID
/// </summary>
public string ProductId { get; set; }
/// <summary>
/// 记录当商品来源为搜款网(实际为拼多多)时对应的真实Id
/// </summary>
public string RealProductId { get; set; }
/// <summary>
/// 商品标题
/// </summary>
public string ProductTitle { get; set; }
/// <summary>
/// 上家类目
/// </summary>
public string CatId { get; set; }
/// <summary>
/// 类目4
/// </summary>
public string CatId4 { get; set; }
/// <summary>
/// 类目3
/// </summary>
public string CatId3 { get; set; }
/// <summary>
/// 类目2
/// </summary>
public string CatId2 { get; set; }
/// <summary>
/// 类目1
/// </summary>
public string CatId1 { get; set; }
/// <summary>
/// 商品主类目
/// </summary>
public string MainCid { get; set; }
/// <summary>
/// 用来搜索同款的图片网址
/// </summary>
public string Image { get; set; }
/// <summary>
/// 映射关系建立的结果
/// </summary>
public string MappingResult { get; set; }
/// <summary>
/// 微店分成推广金设置结果
/// </summary>
public string CPSResult { get; set; }
/// <summary>
/// 最低价格
/// </summary>
public int MinPrice { get; set; }
/// <summary>
/// 最高价格
/// </summary>
public int MaxPrice { get; set; }
/// <summary>
/// 数据来源0 是其他 1是净化数据
/// </summary>
public int dataSoure { get; set; }
/// <summary>
/// 转换成功来源 未知,Api,模拟,缓存等 统计用
/// </summary>
public string MappingResourceType { get; set; }
}
}
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.PDDResult
{
public class ApiPddGoodsCatRuleInfo
{
public int? input_max_spec_num { get; set; } // 0,
public List<ApiPddProperty> properties { get; set; }
public bool? choose_all_qualify_spec { get; set; } // false
}
public class ApiPddProperty
{
public bool? is_sale { get; set; } // false,
public bool? is_important { get; set; } // true,
public bool? is_sku { get; set; } // false,
public List<ApiPddPropertyValue> values { get; set; } // Array[11],
public int? value_precision { get; set; } // 0,
public int? input_max_num { get; set; } // 0,
public bool? required { get; set; } // false,
public object required_rule { get; set; }
public int? required_rule_type { get; set; } // 0,
public int? choose_max_num { get; set; } // 1,
public string min_value { get; set; } // "",
public bool? can_note { get; set; } // false,
public long? ref_pid { get; set; } // 1366,
public string name { get; set; } // "穿耳材质",
public List<string> value_unit { get; set; } // [ "" ],
public string max_value { get; set; } // "",
public int? property_value_type { get; set; } // 0
}
public class ApiPddPropertyValue
{
public long? vid { get; set; } // 10629, // 12854,
public string value { get; set; } // "其它", // "塑料",
}
}
+5 -3
View File
@@ -99,9 +99,10 @@ namespace AllBase.Model.Result
public string GroupName { get; set; }
public DateTime AddTime { get; set; }
public string LastRefreshDate { get; set; }
public string AccessToken { get { return CurrentAuthInfo?.AccessToken; } }
public string RefreshToken { get { return CurrentAuthInfo?.RefreshToken; } }
public string AppKey { get { return CurrentAuthInfo?.AppKey; } }
public string AccessToken { get { return (CurrentAuthInfo?.AccessToken).ParseToString(); } }
public string RefreshToken { get { return (CurrentAuthInfo?.RefreshToken).ParseToString(); } }
public string AppKey { get { return (CurrentAuthInfo?.AppKey).ParseToString(); } }
public string AppSecret { get { return (CurrentAuthInfo?.AppSecret).ParseToString(); } }
public DateTime AuthAddTime { get { return CurrentAuthInfo?.AddTime == null ? new DateTime() : CurrentAuthInfo.AddTime; } }
public DateTime AuthExpiresTime { get { return CurrentAuthInfo?.ExpiresTime == null ? new DateTime() : CurrentAuthInfo.ExpiresTime; } }
/// <summary>
@@ -206,6 +207,7 @@ namespace AllBase.Model.Result
public string AccessToken { get; set; } = "";
public string RefreshToken { get; set; } = "";
public string AppKey { get; set; } = "";
public string AppSecret { get; set; } = "";
public DateTime ExpiresTime { get; set; }
public DateTime AddTime { get; set; } = DateTime.MinValue;
public string ApiAuthStatus { get; set; } = "未授权";