Files
KJD_WebService/AllBase/Model/Param/WXParam/WXUploadProductInitParam.cs
T
2026-01-09 19:32:27 +08:00

101 lines
4.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.WXParam
{
public class WXUploadProductInitParam
{
public productInitParam product { get; set; } = new productInitParam();
}
public class productInitParam
{
public productInitInfoParam info { get; set; } = new productInitInfoParam();
public object productKey { get; set; } = new object();
public List<int> checkTypes { get; set; } = new List<int>() { 2, 4 };
/// <summary>
/// 毫秒时间戳 + "-" + guid // "1767870757369-3d462d80-3b2b-4887-89a0-0a21164d27b7"
/// </summary>
public string sessionId { get; set; } =
(long)(DateTime.Now - TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1))).TotalMilliseconds + "-" + Guid.NewGuid().ToString();
}
public class productInitInfoParam
{
public int? releaseMode { get; set; } = 0;
/// <summary>
/// 商品标题
/// </summary>
public string title { get; set; } // "妈妈长裤老年人2025冬季新款阔脚裤",
public string model { get; set; } = "";
public string subTitle { get; set; } = "";
public List<string> headImg { get; set; } = new List<string>(); // ["https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztJH3jib01ZGXYJxkMWM9ogXvSq8VfZicnzPUghvTukFPwicsRnR3EJff480Rvxot7Vz0jIBb7K4B7hUw?token=x5Y29zUxcibCKICN3RTcFCqUzn2FoG05oBlhD1Kd3Jp8kNIMa7uiawVyJ8GdTAZ0D7&idx=1&expire=1768130066", ...]
public productInitDetailParam detail { get; set; } = new productInitDetailParam();
public List<object> param { get; set; } = new List<object>();
public object expressInfo { get; set; } = new object();
public object serviceDesc { get; set; } = new object();
public List<object> qualificationUrl { get; set; } = new List<object>();
public List<object> qualificationList { get; set; } = new List<object>();
public object sizeChartInfo { get; set; } = new object();
public string brandId { get; set; } = "";
public List<object> category { get; set; } = new List<object>();
public int? categoryType { get; set; } = 2;
public List<object> shopcatId { get; set; } = new List<object>();
public spuLimitedInitParam spuLimited { get; set; }
public int? productType { get; set; } = 1;
public couponcodeInfoParam couponcodeInfo { get; set; } = new couponcodeInfoParam();
public string spuCode { get; set; } = "";
public int? consumeStockType { get; set; } = 0;
public int? deliverMethod { get; set; } = 0;
public List<object> deliverAcctType { get; set; } = new List<object>();
public object extraService { get; set; } = new object();
public List<object> productSaleAttrs { get; set; } = new List<object>();
public object afterSaleInfo { get; set; } = new object();
public bool? hideInWindow { get; set; } = false;
public object displayGeographyCert { get; set; } = new object();
public object leagueItemInfo { get; set; } = new object();
public timingOnsaleInfoInitParam timingOnsaleInfo { get; set; }
public givePresentInfoInitParam givePresentInfo { get; set; }
}
public class givePresentInfoInitParam
{
public int? usePresentHeadImg { get; set; } = 0;
}
public class timingOnsaleInfoInitParam
{
public int? status { get; set; } = 0;
public int? onsaleTime { get; set; } = 0;
public int? isHidePrice { get; set; } = 0;
public int? isHideParam { get; set; } = 0;
}
public class couponcodeInfoParam
{
public int? verifyType { get; set; } = 0;
public validInfoParam validInfo { get; set; } = new validInfoParam();
}
public class validInfoParam
{
public int? validType { get; set; } = 2;
public int? validDayNum { get; set; } = 0;
public string startTime { get; set; } = "";
public string endTime { get; set; } = "";
}
public class spuLimitedInitParam
{
public int? periodType { get; set; } = 0;
public string limitedBuyNum { get; set; } = "";
}
public class productInitDetailParam
{
public string desc { get; set; } = "";
public List<object> detailImg { get; set; } = new List<object>();
}
}