gx
This commit is contained in:
1 parent
c2dcedd238
commit
16cdd3d46e
34 files changed
+837
-481
No files matched your search
@@ -179,10 +179,6 @@ public class ProductBase
|
||||
/// </summary>
|
||||
public string SkuSecretJson { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信图片映射JSON。
|
||||
/// </summary>
|
||||
public string WxImgMapJson { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:商品来源类型名称。
|
||||
/// </summary>
|
||||
public string ProductGetTypeText { get; set; }
|
||||
@@ -195,14 +191,6 @@ public class ProductBase
|
||||
/// </summary>
|
||||
public string SpecialProdType { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:是否存在微信回采格式数据。
|
||||
/// </summary>
|
||||
public string HasWxFormat { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信安全状态。
|
||||
/// </summary>
|
||||
public string WxSafeStatus { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:价格文本。
|
||||
/// </summary>
|
||||
public string PriceText { get; set; }
|
||||
@@ -215,22 +203,6 @@ public class ProductBase
|
||||
/// </summary>
|
||||
public string AddUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信一级类目ID。
|
||||
/// </summary>
|
||||
public long? WxCat1 { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信二级类目ID。
|
||||
/// </summary>
|
||||
public long? WxCat2 { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信三级类目ID。
|
||||
/// </summary>
|
||||
public long? WxCat3 { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:微信叶子类目ID。
|
||||
/// </summary>
|
||||
public long? WxCatLeaf { get; set; }
|
||||
/// <summary>
|
||||
/// 新增:是否发送到外部服务。
|
||||
/// </summary>
|
||||
public int? SendToOutServer { get; set; }
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
namespace Store.Product.Models.Product;
|
||||
|
||||
/// <summary>
|
||||
/// 微信商品上传使用的商品模型。继承通用商品基类,并承载微信平台专属字段。
|
||||
/// </summary>
|
||||
public class WxProductUploadProduct : ProductBase
|
||||
{
|
||||
/// <summary>微信图片映射 JSON。</summary>
|
||||
public string WxImgMapJson { get; set; }
|
||||
|
||||
/// <summary>是否存在微信回采格式数据。</summary>
|
||||
public string HasWxFormat { get; set; }
|
||||
|
||||
/// <summary>微信安全状态。</summary>
|
||||
public string WxSafeStatus { get; set; }
|
||||
|
||||
/// <summary>微信一级类目 ID。</summary>
|
||||
public long? WxCat1 { get; set; }
|
||||
|
||||
/// <summary>微信二级类目 ID。</summary>
|
||||
public long? WxCat2 { get; set; }
|
||||
|
||||
/// <summary>微信三级类目 ID。</summary>
|
||||
public long? WxCat3 { get; set; }
|
||||
|
||||
/// <summary>微信叶子类目 ID。</summary>
|
||||
public long? WxCatLeaf { get; set; }
|
||||
}
|
||||
@@ -5,6 +5,7 @@ using AllBase.Model.Result.PDDResult;
|
||||
using AllBase.Model.Result.WXResult;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Store.Framework.Extensions;
|
||||
using Store.Product.Models.Product;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
@@ -34,11 +35,27 @@ public class WxProductUploadParam
|
||||
public class WxProductUploadSource
|
||||
{
|
||||
public ShopLoginInfo Shop { get; set; }
|
||||
public KJDDBProduct DbProduct { get; set; }
|
||||
public TemuDBProductSelect SelectProduct { get; set; }
|
||||
/// <summary>已完成商品与选品定制组合后的商品数据。</summary>
|
||||
public WxProductUploadProduct Product { get; set; } = new();
|
||||
/// <summary>上传任务状态,仅用于结果回写,不作为商品数据源。</summary>
|
||||
public WxProductPublishTask Task { get; set; } = new();
|
||||
public DateTime StartTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传任务结果。只保存任务状态和最终草稿参数,不保存原始商品数据。
|
||||
/// </summary>
|
||||
public class WxProductPublishTask
|
||||
{
|
||||
public long id { get; set; }
|
||||
public string out_product_Id { get; set; }
|
||||
public string shop_id { get; set; }
|
||||
public string draft_id { get; set; }
|
||||
public string status { get; set; }
|
||||
public DateTime add_time { get; set; }
|
||||
public WXUploadProductParam wxDraftProduct { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 原 UploadProduct 方法中跨 #region 使用的可变状态。
|
||||
/// TODO(迁移): 个别字段当前为 dynamic,需按 Store.Product 最终 DTO 改为明确类型。
|
||||
@@ -100,7 +117,7 @@ public class WxProductPublishState
|
||||
public List<dynamic> AddPriceRules { get; set; } = new();
|
||||
public dynamic WxUploadRule { get; set; }
|
||||
public string PddProductCates { get; set; }
|
||||
public dynamic UploadDraftProductList { get; set; }
|
||||
public List<WxProductPublishTask> UploadDraftProductList { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -260,4 +277,4 @@ public class WxControlState
|
||||
Text = numericUpDown?.Text ?? ""
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user