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 checkTypes { get; set; } = new List() { 2, 4 }; /// /// 毫秒时间戳 + "-" + guid // "1767870757369-3d462d80-3b2b-4887-89a0-0a21164d27b7" /// 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; /// /// 商品标题 /// public string title { get; set; } // "妈妈长裤老年人2025冬季新款阔脚裤", public string model { get; set; } = ""; public string subTitle { get; set; } = ""; public List headImg { get; set; } = new List(); // ["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 param { get; set; } = new List(); public object expressInfo { get; set; } = new object(); public object serviceDesc { get; set; } = new object(); public List qualificationUrl { get; set; } = new List(); public List qualificationList { get; set; } = new List(); public object sizeChartInfo { get; set; } = new object(); public string brandId { get; set; } = ""; public List category { get; set; } = new List(); public int? categoryType { get; set; } = 2; public List shopcatId { get; set; } = new List(); 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 deliverAcctType { get; set; } = new List(); public object extraService { get; set; } = new object(); public List productSaleAttrs { get; set; } = new List(); 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 detailImg { get; set; } = new List(); } }