828 lines
38 KiB
C#
828 lines
38 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 WXUploadProductParam
|
|
{
|
|
public int? from { get; set; } = 2; // 2,
|
|
public WXProductParam product { get; set; } = new WXProductParam();
|
|
public int? type { get; set; } = 1; // 1
|
|
public bool? listingFlag { get; set; } = true;
|
|
public bool? skipCheckAttr { get; set; } = true;
|
|
public sessionInfoParam sessionInfo { get; set; } = new sessionInfoParam();
|
|
}
|
|
|
|
public class sessionInfoParam
|
|
{
|
|
//"1767692870470-ea4c0227-4579-4647-813b-7f4e8a190ad6"
|
|
public string sessionId { get; set; } =
|
|
(long)(DateTime.Now - TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1))).TotalMilliseconds + "-" + Guid.NewGuid().ToString();
|
|
}
|
|
|
|
public class WXProductParam
|
|
{
|
|
public productKeyParam productKey { get; set; } = new productKeyParam();
|
|
public int? status { get; set; } // 5,
|
|
public int? editStatus { get; set; } // 4,
|
|
public string auditReason { get; set; } // "";
|
|
public auditResultInfoParam auditResultInfo { get; set; } = new auditResultInfoParam();
|
|
public productInfoParam info { get; set; } = new productInfoParam();
|
|
public List<productSkuParam> productSkus { get; set; } = new List<productSkuParam>();
|
|
public int? categoryType { get; set; } = 2;
|
|
public bool? isGoodsSpecialCategory { get; set; } = true;
|
|
public productDeliverInfoParam deliverInfo { get; set; }
|
|
}
|
|
|
|
public class productDeliverInfoParam
|
|
{
|
|
public skuDeliverInfoParam skuDeliverInfo { get; set; }
|
|
public int? deliverType { get; set; }
|
|
}
|
|
|
|
public class productSkuParam
|
|
{
|
|
public string __skuKey { get; set; } = "";// "尺码.M_颜色.蓝色",
|
|
public string __skuTitle { get; set; } = ""; // "蓝色 M",
|
|
public bool? __skuSelected { get; set; } = true;
|
|
public skuKeyParam skuKey { get; set; } = new skuKeyParam();
|
|
public string skuId { get; set; } = ""; // "6134573242",
|
|
public productSkuInfoParam productSkuInfo { get; set; } = new productSkuInfoParam();
|
|
public int? status { get; set; } = 5;
|
|
public int? index { get; set; } = 0;
|
|
}
|
|
|
|
public class productSkuInfoParam
|
|
{
|
|
public string thumbImg { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c85e9000a3bff29d22878fedda00b000000a000004f50",
|
|
public int? salePrice { get; set; } // 10000,
|
|
public string skuCode { get; set; } = "";
|
|
public string outSkuId { get; set; } = ""; // 模拟接口没有
|
|
public string out_sku_id { get; set; } = ""; // 模拟接口没有
|
|
/// <summary>
|
|
/// 条形码
|
|
/// </summary>
|
|
public string barCode { get; set; } = "";
|
|
public stockInfoParam stockInfo { get; set; } = new stockInfoParam();
|
|
public List<saleParamParam> saleParam { get; set; } = new List<saleParamParam>();
|
|
public skuDeliverInfoParam skuDeliverInfo { get; set; } = new skuDeliverInfoParam();
|
|
public realStockInfoParam realStockInfo { get; set; }
|
|
public stockDiffParam stockDiff { get; set; } = new stockDiffParam();
|
|
}
|
|
|
|
public class realStockInfoParam
|
|
{
|
|
public List<object> warehouseStocks { get; set; } = new List<object>();
|
|
public int? stockNum { get; set; } = 999;
|
|
public string lockStock { get; set; } = "0";
|
|
public string soldStock { get; set; } = "0";
|
|
public string limitedDiscountStockNum { get; set; } = "0";
|
|
public string groupbuyStockNum { get; set; } = "0";
|
|
public string overSoldNum { get; set; } = "0";
|
|
public int? totalNum { get; set; } = 999;
|
|
public string totalLock { get; set; } = "0";
|
|
public string totalSold { get; set; } = "0";
|
|
public int? finderTotalNum { get; set; } = 0;
|
|
public string finderTotalLock { get; set; } = "0";
|
|
public string finderTotalSold { get; set; } = "0";
|
|
public string exclusiveNum { get; set; } = "0";
|
|
public string exclusiveLock { get; set; } = "0";
|
|
public string exclusiveSold { get; set; } = "0";
|
|
public string lockedOver { get; set; } = "0";
|
|
public string soldOver { get; set; } = "0";
|
|
public string limitedDiscountLockedOver { get; set; } = "0";
|
|
public string limitedDiscountSoldOver { get; set; } = "0";
|
|
public string exclusiveLockOver { get; set; } = "0";
|
|
public string exclusiveSoldOver { get; set; } = "0";
|
|
public string mmecwxaNormalStockNum { get; set; } = "0";
|
|
public string mmecwxaNormalLockStock { get; set; } = "0";
|
|
public string mmecwxaNormalSoldStock { get; set; } = "0";
|
|
public string mmecwxaLimitedDiscountStockNum { get; set; } = "0";
|
|
public string mmecwxaLimitedDiscountLockStock { get; set; } = "0";
|
|
public string mmecwxaLimitedDiscountSoldStock { get; set; } = "0";
|
|
public string mmecwxaExclusiveStockNum { get; set; } = "0";
|
|
public string mmecwxaExclusiveLockStock { get; set; } = "0";
|
|
public string mmecwxaExclusiveSoldStock { get; set; } = "0";
|
|
public string giftTotalNum { get; set; } = "0";
|
|
public string giftTotalLocked { get; set; } = "0";
|
|
public string giftTotalSold { get; set; } = "0";
|
|
public string uniqueId { get; set; } = "";
|
|
public int? stockType { get; set; } = 0;
|
|
public int? zeroStockType { get; set; } = 0;
|
|
|
|
}
|
|
|
|
public class stockDiffParam
|
|
{
|
|
public int? diffType { get; set; } = 2;
|
|
public object num { get; set; } // null
|
|
|
|
}
|
|
|
|
public class skuDeliverInfoParam
|
|
{
|
|
public int? stockType { get; set; } = 0;
|
|
public int? fullPaymentPresaleDeliveryType { get; set; } = 0;
|
|
public string presaleBeginTime { get; set; } = "0";
|
|
public string presaleEndTime { get; set; } = "0";
|
|
public int? spotDeliveryTime { get; set; } = 1;
|
|
public string fullPaymentPresaleDeliveryTime { get; set; } = "0";
|
|
public int? spotAfterPresaleEnd { get; set; } = 0;
|
|
public int? deliverType { get; set; }
|
|
}
|
|
|
|
public class saleParamParam
|
|
{
|
|
/// <summary>
|
|
/// 第一个参数为sku spec类别 categoryKeyParam
|
|
/// 第二个参数为sku spec数值 categoryValueParam
|
|
/// </summary>
|
|
public List<object> categorys { get; set; }
|
|
}
|
|
|
|
public class categoryKeyParam
|
|
{
|
|
public bool? isCustomize { get; set; } // true,
|
|
public bool? isMainSale { get; set; } // true,
|
|
public string name { get; set; } // "颜色",
|
|
public int? id { get; set; } // 3,
|
|
public long? catId { get; set; } // 2000000000028,
|
|
public int? value { get; set; } // 0,
|
|
public string label { get; set; } // "自定义规格",
|
|
public int? priority { get; set; } // 1,
|
|
public skuCatInfoParam catInfo { get; set; } // { "isCustomize": 1 }, // 自定义属性才有
|
|
public int? catType { get; set; } // 8 //自定义属性才有
|
|
|
|
//以下自定义属性没有
|
|
public string type { get; set; } // "select_one",
|
|
public string hint { get; set; } // "",
|
|
public string remark { get; set; } // "",
|
|
public bool? appendAllowed { get; set; } // true,
|
|
public releaseParam normalRelease { get; set; } // { "ruleType": 2 },
|
|
public releaseParam quickRelease { get; set; } // { "ruleType": 0 },
|
|
public bool? isRequired { get; set; } // false,
|
|
public bool? display { get; set; } // true,
|
|
public string data { get; set; } // "",
|
|
public int? weight { get; set; } // 0,
|
|
public decimal? key { get; set; } // 0.3529221028790839,
|
|
public List<skuSelectParam> selectList { get; set; }
|
|
public string unit { get; set; } // "",
|
|
public string unitValue { get; set; } // "",
|
|
public bool? show { get; set; } // false,
|
|
public string initData { get; set; } // ""
|
|
}
|
|
public class categoryValueParam
|
|
{
|
|
public long? catId { get; set; } // "1767670333303",
|
|
public string name { get; set; } // "黑色",
|
|
public long? fCatId { get; set; } // "2000000000006",
|
|
public string catType { get; set; } // 0,
|
|
public string brandCat { get; set; } // "0",
|
|
public categoryValueCatInfo catInfo { get; set; }
|
|
public bool? selected { get; set; }
|
|
|
|
public string desc { get; set; } = "";
|
|
public int? priority { get; set; } = 1;
|
|
public string createTime { get; set; } = "0";
|
|
public string updateTime { get; set; } = "0";
|
|
public int? version { get; set; } = 0;
|
|
public string auditId { get; set; } = "0";
|
|
public bool? leaf { get; set; } = false;
|
|
public int? state { get; set; } = 0;
|
|
public string tips { get; set; } = "";
|
|
public string detail { get; set; } = "";
|
|
public string thumbImg { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c85e9000a3bff29d22878fedda00b000000a000004f50",
|
|
public string skuNameValue { get; set; } = "黑色";
|
|
|
|
}
|
|
|
|
public class categoryValueCatInfo
|
|
{
|
|
public List<object> businessInfoList { get; set; } = new List<object>();
|
|
public int? isCustomize { get; set; } = 0;
|
|
public int? editByUser { get; set; } = 1;
|
|
public int? isRequired { get; set; } = 0;
|
|
public int? specType { get; set; } = 0;
|
|
public string specTypeDesc { get; set; } = "";
|
|
public string attrTemplateId { get; set; } = "0";
|
|
public string attrTemplateName { get; set; } = "";
|
|
public int? maxAttrNum { get; set; } = 0;
|
|
public int? catLevel { get; set; } = 0;
|
|
public int? highestPriceFixing { get; set; } = 0;
|
|
public string wording { get; set; } = "";
|
|
public string description { get; set; } = "";
|
|
public int? maxProductNum { get; set; } = 0;
|
|
public string qualification { get; set; } = "";
|
|
public string productQualification { get; set; } = "";
|
|
public string quaNeedAudit { get; set; } = "";
|
|
public int? maxQualificationImg { get; set; } = 0;
|
|
public long? catGroup { get; set; } // 4294967295,
|
|
public string qualificationId { get; set; } = "0";
|
|
public int? qualificationType { get; set; } = 0;
|
|
public int? productQualificationType { get; set; } = 0;
|
|
public string productQualificationId { get; set; } = "0";
|
|
public bool? isVirtualGoods { get; set; } = false;
|
|
public string limit { get; set; } = "0";
|
|
public int? inputType { get; set; } = 0;
|
|
public int? componentCatGroup { get; set; } = 0;
|
|
public int? isHide { get; set; } = 0;
|
|
public bool? onlyWriteOffInShop { get; set; } = false;
|
|
|
|
}
|
|
|
|
public class skuSelectParam
|
|
{
|
|
public string label { get; set; } // "XS",
|
|
public string value { get; set; } // "XS"
|
|
}
|
|
|
|
public class skuCatInfoParam
|
|
{
|
|
public int? isCustomize { get; set; } // 1
|
|
}
|
|
|
|
public class stockInfoParam
|
|
{
|
|
public int? stockNum { get; set; } // 5
|
|
}
|
|
|
|
public class skuKeyParam
|
|
{
|
|
public string skuId { get; set; } = ""; // "6134573242"
|
|
public productKeyParam productKey { get; set; }
|
|
public string skuSnapId { get; set; } // "1196674898",
|
|
public string outSkuId { get; set; } // ""
|
|
}
|
|
|
|
public class productKeyParam
|
|
{
|
|
public List<object> cashCouponSendKey = new List<object>();
|
|
public string productId { get; set; } // "10000408181873",
|
|
public string outProductId { get; set; } = "";
|
|
public string appid { get; set; } = "";
|
|
public string originProductId { get; set; } = "0";
|
|
public int? productKeyType { get; set; } = 0;
|
|
public int? stockType { get; set; } = 0;
|
|
public string stockTypeId { get; set; } = "";
|
|
public string promoterKey { get; set; } = "";
|
|
}
|
|
|
|
public class productInfoParam // info
|
|
{
|
|
public List<string> headImg { get; set; } = new List<string>(); // [ "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c7f5f000d23e709f79176079a1715000000a000004f50" ...],
|
|
public List<categoryParam> category { get; set; } = new List<categoryParam>();
|
|
public List<wxPropParam> param { get; set; } = new List<wxPropParam>();
|
|
public List<productSaleAttrParam> productSaleAttrs { get; set; } = new List<productSaleAttrParam>();
|
|
public List<object> shopcatId { get; set; } = new List<object>();
|
|
public List<object> qualificationUrl { get; set; } = new List<object>();
|
|
public List<object> thirdCategoryHistories { get; set; } = new List<object>();
|
|
public List<object> headVideoInfo { get; set; } = new List<object>();
|
|
public List<object> labels { get; set; } = new List<object>();
|
|
public List<qualificationParam> qualificationList { get; set; } = new List<qualificationParam>();
|
|
public List<productHeadimgInfoParam> productHeadimgInfo { get; set; }
|
|
public List<object> deliverAcctType { get; set; } = new List<object>();
|
|
public List<headImgInfoParam> headImgInfos { get; set; }
|
|
public List<object> iconTags { get; set; } = new List<object>();
|
|
public List<object> orderIconTags { get; set; } = new List<object>();
|
|
public string title { get; set; } // "中老年妈妈牛仔阔腿裤2025秋冬季新款女士显瘦高腰宽松直筒牛仔裤",
|
|
public string subTitle { get; set; } = ""; // "",
|
|
public string brand { get; set; } // "",
|
|
public string model { get; set; } = ""; // "",
|
|
public productDetailParam detail { get; set; }
|
|
/// <summary>
|
|
/// 品牌编号
|
|
/// </summary>
|
|
//public string brandId { get; set; } = "2100000000"; //
|
|
public long? brandId { get; set; } = 2100000000;
|
|
public skuIdListParam skuIdList { get; set; }
|
|
public skuListParam skuList { get; set; }
|
|
public recommendCategoryParam recommendCategory { get; set; }
|
|
public string listingTime { get; set; } // "1767693374",
|
|
public string totalStockNum { get; set; } // "0",
|
|
public serviceDescParam serviceDesc { get; set; } = new serviceDescParam();
|
|
/// <summary>
|
|
/// 运费信息
|
|
/// </summary>
|
|
public expressInfoParam expressInfo { get; set; }
|
|
public string totalSoldNum { get; set; } = "0";
|
|
public string qualificationWording { get; set; } = "";
|
|
public string appidForMedia { get; set; } = "";
|
|
public snapshotInfoParam snapshotInfo { get; set; }
|
|
public int? shopcatVersion { get; set; } = 0;
|
|
public string totalOrderNum { get; set; } = "0";
|
|
public string totalVisitNum { get; set; } = "0";
|
|
public int? uploadSource { get; set; } = 6;
|
|
public spuLimitedParam spuLimited { get; set; } = new spuLimitedParam();
|
|
public int? originUploadSource { get; set; } = 6;
|
|
public int? virtualType { get; set; } = 2;
|
|
public int? productType { get; set; } = 1;
|
|
public couponcodeInfoParam couponcodeInfo { get; set; } = new couponcodeInfoParam();
|
|
/// <summary>
|
|
/// extCode 货号
|
|
/// </summary>
|
|
public string spuCode { get; set; } = "";
|
|
public string outProductId { get; set; } = ""; // 模拟接口没有
|
|
public string out_product_id { get; set; } = ""; // 模拟接口没有
|
|
public int? asyncUpproductRet { get; set; } = 0;
|
|
public int? illegalRecordId { get; set; } = 0;
|
|
public string headImage { get; set; } = "";
|
|
public string componentUin { get; set; } = "0";
|
|
public string copyFromSpuId { get; set; } = "0";
|
|
public int? deliverMethod { get; set; } = 0;
|
|
public int? presaleTag { get; set; } = 0;
|
|
public int? presaleTagType { get; set; } = 0;
|
|
public int? maxPresaleEndTime { get; set; } = 0;
|
|
public extraServiceParam extraService { get; set; } = new extraServiceParam();
|
|
/// <summary>
|
|
/// 售后信息
|
|
/// </summary>
|
|
public afterSaleInfoParam afterSaleInfo { get; set; } = new afterSaleInfoParam();
|
|
public int? lastRefundOrderDays { get; set; } = 0;
|
|
public string nodeCatId { get; set; } // "547705",
|
|
public sizeChartInfoParam sizeChartInfo { get; set; } = new sizeChartInfoParam();
|
|
public string lastEditDraftTime { get; set; } // "1767693275";
|
|
public customConfigParam customConfig { get; set; } = new customConfigParam();
|
|
public string updateStatusTime { get; set; } = "0";
|
|
/// <summary>
|
|
/// 短标题
|
|
/// </summary>
|
|
public string shortTitle { get; set; } // "显瘦高腰中老年宽松牛仔裤",
|
|
public int? barCodeType { get; set; } = 0;
|
|
public string originNodeCatId { get; set; } // "547705",
|
|
public int? changeCatLevel { get; set; } = 0;
|
|
public int? releaseMode { get; set; } = 0;
|
|
public bool? isDuplicatedInShop { get; set; } = false;
|
|
/// <summary>
|
|
/// ai短标题
|
|
/// </summary>
|
|
public string aiGenShortTitle { get; set; } // "显瘦高腰中老年宽松牛仔裤",
|
|
public bool? empty { get; set; } = false;
|
|
public string uniqueId { get; set; } // "4330209544501837823",
|
|
public string titleUtf8Token { get; set; } = "";
|
|
public bool? hideInWindow { get; set; } = false;
|
|
public bool? canGivePresent { get; set; } = false;
|
|
public bool? canGenOrder { get; set; } = false;
|
|
public int? presentPriceLimit { get; set; } = 0;
|
|
public bool? showPresentBtn { get; set; } = false;
|
|
public string canntGivePresnetMsg { get; set; } = "";
|
|
public string canntGenOrderMsg { get; set; } = "";
|
|
public bool? canAddShopBag { get; set; } = false;
|
|
public bool? canGiveGroupPresent { get; set; } = false;
|
|
public bool? presentNeedSelectSku { get; set; } = true;
|
|
public givePresentInfoParam givePresentInfo { get; set; } = new givePresentInfoParam();
|
|
public bool? hideBottomBar { get; set; } = false;
|
|
public bool? canAddUserFavory { get; set; } = false;
|
|
public string extendAuditData { get; set; } = "";
|
|
public int? consumeStockType { get; set; } = 0;
|
|
public int? auditFromPersonalTrans { get; set; } = 0;
|
|
public bool? isClipEditGray { get; set; } = false;
|
|
public List<object> promotingVideoInfos { get; set; } = new List<object>();
|
|
public timingOnsaleInfoParam timingOnsaleInfo { get; set; } = new timingOnsaleInfoParam();
|
|
public leagueItemInfoParam leagueItemInfo { get; set; } = new leagueItemInfoParam();
|
|
}
|
|
|
|
public class qualificationParam
|
|
{
|
|
public string qualificationId { get; set; } // "1111485",
|
|
public List<string> qualificationUrl { get; set; } // ["https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztJZvEhHrozpFIFJu2hgPuZS72J5BOmTnibDpt88NgTZLfmt6ziacLk1IIc3BLlnfc0XpyNmeiaCWeMVw?token=x5Y29zUxcibDicBLjG2rgWiaf29nSfAfsLNARZEJicqTfdyR6p5hONtKibWlnRrqOsNsA&idx=1&expire=1768988129"]
|
|
}
|
|
|
|
public class timingOnsaleInfoParam
|
|
{
|
|
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 leagueItemInfoParam
|
|
{
|
|
public int? itemSwitch { get; set; } = 0;
|
|
public int? itemRatio { get; set; } = 0;
|
|
public int? headSupplierPublicItemSwitch { get; set; } = 0;
|
|
public int? headSupplierPublicItemServiceRatio { get; set; } = 0;
|
|
}
|
|
|
|
public class givePresentInfoParam
|
|
{
|
|
public bool? supportPresentCard { get; set; } = false;
|
|
public bool? canChangeSkus { get; set; } = false;
|
|
public int? usePresentHeadImg { get; set; } = 0;
|
|
}
|
|
|
|
public class customConfigParam
|
|
{
|
|
public List<object> customType { get; set; } = new List<object>();
|
|
public List<object> customTextInputTypes { get; set; } = new List<object>();
|
|
public List<object> descImgList { get; set; } = new List<object>();
|
|
public int? customTextMaxLength { get; set; } = 0;
|
|
public int? customTextInputType { get; set; } = 0;
|
|
public int? customTextDirection { get; set; } = 0;
|
|
public int? customTextFontSize { get; set; } = 0;
|
|
public string customTextColor { get; set; } = "";
|
|
public bool? openCustom { get; set; } = false;
|
|
public string deliveryTime { get; set; } = "0";
|
|
public int? previewType { get; set; } = 0;
|
|
|
|
}
|
|
|
|
public class sizeChartInfoParam
|
|
{
|
|
public List<object> specificationList { get; set; } = new List<object>();
|
|
public bool? enable { get; set; } = false;
|
|
public string templateId { get; set; } = "0";
|
|
public string title { get; set; } = "";
|
|
public string comment { get; set; } = "";
|
|
|
|
}
|
|
|
|
public class afterSaleInfoParam
|
|
{
|
|
/// <summary>
|
|
/// 售后服务地址Id
|
|
/// </summary>
|
|
public string afterSaleAddressId { get; set; } // "56417904002"
|
|
}
|
|
|
|
public class extraServiceParam
|
|
{
|
|
public int? sevenDayReturn { get; set; } = 1; // 七天无理由
|
|
public int? payAfterUse { get; set; } = 0; // 1, 先用后付
|
|
public int? freightInsurance { get; set; } = 1; // 运费险
|
|
public int? fastRefund { get; set; } = 0; // 1 快速退款
|
|
public int? damageGuarantee { get; set; } = 0; // 坏损包退
|
|
public int? fakeOnePayFour { get; set; } = 0; // 假一赔四
|
|
public int? refundOrderTime { get; set; } = 0;
|
|
public int? deliverAfterCheck { get; set; } = 0;
|
|
public int? exchangeSupport { get; set; } = 1;
|
|
public int? buyWithConfidence { get; set; } = 0;
|
|
public int? seniorFastRefund { get; set; } = 0;
|
|
public int? seniorCustomerService { get; set; } = 0;
|
|
public int? seniorFreeReturn { get; set; } = 0;
|
|
public int? seniorPlatformSupport { get; set; } = 0;
|
|
public int? seniorFastExchange { get; set; } = 0;
|
|
public int? elderlyUserFastRefund { get; set; } = 0;
|
|
public int? elderlyUserCustomerService { get; set; } = 0;
|
|
public int? elderlyUserFreeReturn { get; set; } = 0;
|
|
public int? elderlyUserPlatformSupport { get; set; } = 0;
|
|
public int? elderlyUserFastExchange { get; set; } = 0;
|
|
public int? newUserFastRefund { get; set; } = 0;
|
|
public int? newUserCustomerService { get; set; } = 0;
|
|
public int? newUserFreeReturn { get; set; } = 0;
|
|
public int? newUserPlatformSupport { get; set; } = 0;
|
|
public int? newUserFastExchange { get; set; } = 0;
|
|
}
|
|
|
|
public class spuLimitedParam
|
|
{
|
|
public int periodType { get; set; } = 0;
|
|
//public int limitedBuyNum { get; set; } = 0;
|
|
public string limitedBuyNum { get; set; } = "";
|
|
public int createTime { get; set; } = 0;
|
|
public int updateTime { get; set; } = 0;
|
|
}
|
|
|
|
public class snapshotInfoParam
|
|
{
|
|
public string snapshotId { get; set; } // "1115465280",
|
|
public string auditId { get; set; } // "8248460949"
|
|
|
|
}
|
|
|
|
public class expressInfoParam
|
|
{
|
|
/// <summary>
|
|
/// 运费模板
|
|
/// </summary>
|
|
public string templateId { get; set; } // "763996138004",
|
|
//public string weight { get; set; } = "0";
|
|
}
|
|
|
|
public class serviceDescParam
|
|
{
|
|
public List<object> serviceList { get; set; } = new List<object>();
|
|
public string desc { get; set; } = "";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否使用ai推荐类目信息,新建商品进入的照抄
|
|
/// </summary>
|
|
public class recommendCategoryParam
|
|
{
|
|
public bool? isAccepted { get; set; } = false;
|
|
public List<string> categoryNames { get; set; } = new List<string>();
|
|
public string recommendSource { get; set; } = "none";
|
|
public string interfaceName { get; set; } = "";
|
|
public int? useNewInterface { get; set; } = 0;
|
|
}
|
|
|
|
public class skuListParam
|
|
{
|
|
public List<skuInfoParam> skuInfo { get; set; }
|
|
public int? minPrice { get; set; } // 10000,
|
|
public int? maxPrice { get; set; } // 10000,
|
|
public int? discountedPrice { get; set; } = 0;
|
|
public bool? isDiscounted { get; set; } = false;
|
|
public int? estimatePrice { get; set; } = 0;
|
|
public int? leagueDiscountedPrice { get; set; } = 0;
|
|
public string estimateCouponId { get; set; } = "0";
|
|
public string minPriceWording { get; set; } = "";
|
|
public string buyButtonWording { get; set; } = "";
|
|
public string microMemberDiscountedPrice { get; set; } = "0";
|
|
public int? estimatePricePriceType { get; set; } = 0;
|
|
public string withoutMicroMemberPriceWording{ get; set; } = "";
|
|
public int? originPrice { get; set; } = 0;
|
|
public int? discountRate { get; set; } = 0;
|
|
public string estimateBatchId{ get; set; } = "";
|
|
public int? estimateCouponPromoteType { get; set; } = 0;
|
|
public string estimatePlatformDiscountCouponId{ get; set; } = "0";
|
|
public int? estimatePlatformDiscountCouponPromoteType { get; set; } = 0;
|
|
public int? referencePrice { get; set; } = 0;
|
|
public int? originMaxPrice { get; set; } = 0;
|
|
public string bulkbuyDiscountedPrice{ get; set; } = "0";
|
|
public string bulkbuyActivityId{ get; set; } = "0";
|
|
public string estimateCashCouponDiscountCouponId{ get; set; } = "";
|
|
public int? subsidyQualificationStatus { get; set; } = 0;
|
|
public int? subsidyStatus { get; set; } = 0;
|
|
public string subsidySubPriceWording{ get; set; } = "";
|
|
public string subsidyBannerWording{ get; set; } = "";
|
|
public string estimateSubsidyRuleId{ get; set; } = "0";
|
|
public string subsidyLocationWording{ get; set; } = "";
|
|
public string subsidyDetailWording{ get; set; } = "";
|
|
public string preEstimatePrice{ get; set; } = "0";
|
|
public string bulkbuyNeedGap{ get; set; } = "0";
|
|
public int? bulkbuyNeedProductCnt { get; set; } = 0;
|
|
public bool? canUseSubsidy{ get; set; } = false;
|
|
public string bulkbuyQuotaId{ get; set; } = "";
|
|
public int? estimateCashCouponPromoteType { get; set; } = 0;
|
|
public string minPriceSkuId{ get; set; } = "0";
|
|
public int? bulkbuyNeedPeopleCnt { get; set; } = 0;
|
|
public int? minPriceType { get; set; } = 0;
|
|
public string canSubsidyLocationWording{ get; set; } = "";
|
|
public int? subsidyType { get; set; } = 0;
|
|
public int? estimateCashCouponSecondBusinessScene { get; set; } = 0;
|
|
public string estimateActivityDiscountedPrice{ get; set; } = "0";
|
|
public string estimateActivityId{ get; set; } = "0";
|
|
public string estimateCashCouponDiscountPrice{ get; set; } = "0";
|
|
public string estimateFavorCouponId{ get; set; } = "0";
|
|
public string defaultSelectedSkuId{ get; set; } = "0";
|
|
public int? detailTagType { get; set; } = 0;
|
|
|
|
}
|
|
|
|
public class skuInfoParam
|
|
{
|
|
public List<object> skuActivityInfos { get; set; } = new List<object>();
|
|
public string skuId { get; set; } // "6134651417",
|
|
public int? price { get; set; } // 10000,
|
|
public string skuSnapId { get; set; } = "0"; // "0",
|
|
public bool? isDiscounted { get; set; } = false; // false,
|
|
public int? discountedPrice { get; set; } = 0; // 0,
|
|
public int? estimatePrice { get; set; } = 0; // 0,
|
|
public string estimateCouponId { get; set; } = "0"; // "0",
|
|
public bool? canUseCoupon { get; set; } = false; // false,
|
|
public int? marketPrice { get; set; } = 0; // 0,
|
|
public int? priceType { get; set; } = 0; // 0,
|
|
public string microMemberDiscountedPrice { get; set; } = "0"; // "0",
|
|
public bool? runOutStock { get; set; } = false; // false,
|
|
public int? originPrice { get; set; } = 0 ;// 0,
|
|
public int? discountRate { get; set; } = 0; // 0,
|
|
public string estimateBatchId { get; set; } = ""; // "",
|
|
public int? estimateCouponPromoteType { get; set; } = 0;// 0,
|
|
public string estimatePlatformDiscountCouponId { get; set; } = "0"; // "0",
|
|
public int? estimatePlatformDiscountCouponPromoteType { get; set; } = 0;// 0,
|
|
public int? referencePrice { get; set; } = 0; // 0,
|
|
public string priceWording { get; set; } = ""; // "",
|
|
public string bulkbuyDiscountedPrice { get; set; } = "0"; // "0",
|
|
public string bulkbuyActivityId { get; set; } = "0"; // "0",
|
|
public string estimateCashCouponDiscountCouponId { get; set; } = ""; // "",
|
|
public string estimateActivityDiscountedPrice { get; set; } = "0"; // "0",
|
|
public string estimateActivityId { get; set; } = "0"; // "0",
|
|
public string estimateCashCouponDiscountPrice { get; set; } = "0"; // "0",
|
|
public string estimateSubsidyRuleId { get; set; } = "0"; // "0",
|
|
public string barCode { get; set; } = ""; // "",
|
|
public string preEstimatePrice { get; set; } = "0"; // "0",
|
|
public bool? canUseSubsidy { get; set; } = false; // false,
|
|
public int? estimateCashCouponPromoteType { get; set; } = 0; // 0,
|
|
public int? estimatePriceType { get; set; } = 0; // 0,
|
|
public int? subsidyType { get; set; } = 0; // 0,
|
|
public bool? isNewBulkbuy { get; set; } = false; // false,
|
|
public int? estimateCashCouponSecondBusinessScene { get; set; } = 0; // 0,
|
|
public string estimateFavorCouponId { get; set; } = "0"; // "0",
|
|
public int? detailTagType { get; set; } = 0; // 0,
|
|
public bool? limitedDiscountNeedReplaceStock { get; set; } = false; // false,
|
|
public string limitedDiscountStock { get; set; } = "0"; // "0"
|
|
}
|
|
|
|
public class skuIdListParam
|
|
{
|
|
public List<string> skuIds { get; set; } // [ "6134651417", "6134573242" ]
|
|
}
|
|
|
|
public class productDetailParam
|
|
{
|
|
public List<string> detailImg { get; set; } = new List<string>(); // ["https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c863e00022b1f09b35b0e7ad91715000000a000004f50", ...]
|
|
public List<object> detailVideos { get; set; }
|
|
public List<object> detailVideoInfo { get; set; }
|
|
public List<object> carouselImg { get; set; }
|
|
public string desc { get; set; } = ""; // ""
|
|
}
|
|
|
|
public class headImgInfoParam
|
|
{
|
|
public string imgUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c7f5f000d23e709f79176079a1715000000a000004f50",
|
|
public int? imgWidth { get; set; } // 800,
|
|
public int? imgHeight { get; set; } // 800
|
|
}
|
|
|
|
public class productHeadimgInfoParam
|
|
{
|
|
public List<object> colors { get; set; } = new List<object>();
|
|
public string imgUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c7f5f000d23e709f79176079a1715000000a000004f50",
|
|
public mainColorParam mainColors { get; set; }
|
|
}
|
|
|
|
public class mainColorParam
|
|
{
|
|
public int? red { get; set; } // 80,
|
|
public int? green { get; set; } // 78,
|
|
public int? blue { get; set; } // 77
|
|
|
|
}
|
|
|
|
public class productSaleAttrParam
|
|
{
|
|
public string key { get; set; } // "颜色",
|
|
public List<productSaleAttrItemParam> items { get; set; } // 最后要补一个空的
|
|
public bool hasImg { get; set; }
|
|
}
|
|
|
|
public class productSaleAttrItemParam
|
|
{
|
|
public string value { get; set; } // "蓝色",
|
|
public string imgUrl { get; set; } // "https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c85e5000dea52198a3d9c98a71715000000a000004f50"
|
|
|
|
}
|
|
|
|
public class wxPropParam
|
|
{
|
|
public List<categoryPropParam> categorys { get; set; } = new List<categoryPropParam>();
|
|
}
|
|
|
|
public class categoryPropParam
|
|
{
|
|
public string auditId { get; set; } = "0";
|
|
public string bizuin { get; set; } = "0";
|
|
public string brandCat { get; set; } = "0";
|
|
public string catId { get; set; } = "0";
|
|
public int? catType { get; set; } = 7;
|
|
public string createTime { get; set; } = "0";
|
|
public string desc { get; set; } = "";
|
|
public string fCatId { get; set; } = "0";
|
|
public string name { get; set; } // "款式",
|
|
public int? priority { get; set; } = 0;
|
|
public string updateTime { get; set; } = "0";
|
|
public int? version { get; set; } = 0;
|
|
public catInfoParam catInfo { get; set; } // { "inputType": 1, "isRequired": 1, "isCustomize": 0 }
|
|
}
|
|
|
|
public class catInfoParam
|
|
{
|
|
public int? inputType { get; set; } // 1,
|
|
public int? isRequired { get; set; } // 1,
|
|
public int? isCustomize { get; set; } // 0
|
|
|
|
}
|
|
|
|
public class categoryParam
|
|
{
|
|
public string id { get; set; } // "10000672",
|
|
public string name { get; set; } // "裤子",
|
|
public string fId { get; set; } // "10000113",
|
|
public int? level { get; set; } // 3,
|
|
public int? disableScene { get; set; } // 0,
|
|
public bool? leaf { get; set; } // false,
|
|
public int? state { get; set; } // 0,
|
|
public string tips { get; set; } // "",
|
|
public string detail { get; set; } // "",
|
|
public string catId { get; set; } // "10000672",
|
|
public string fCatId { get; set; } // "10000113"
|
|
public bool? catAuth { get; set; } // true
|
|
public categoryInfoParam catInfo { get; set; }
|
|
}
|
|
|
|
public class categoryInfoParam
|
|
{
|
|
public int? catLevel { get; set; } // 3,
|
|
public bool? onlyWriteOffInShop { get; set; } // false,
|
|
public bool? isVirtualGoods { get; set; } // false,
|
|
public long? highestPriceFixing { get; set; } // 250000,
|
|
public enterpriseAuditInfoParam enterpriseAuditInfo { get; set; }
|
|
public allAttrParam productAttr { get; set; }
|
|
public allAttrParam saleAttr { get; set; }
|
|
public allAttrParam sizeAttr { get; set; }
|
|
public presaleDataParam presaleData { get; set; }
|
|
public List<object> confirmReceiptOptions { get; set; }
|
|
}
|
|
|
|
public class presaleDataParam
|
|
{
|
|
public bool? presaleSwitch { get; set; } // true,
|
|
public deliveryParam deliveryAfterPresale { get; set; } // { "presaleCycleSpan": 15, "minDelayDay": 2, "maxDelayDay": 3 },
|
|
public deliveryParam deliveryAfterPay { get; set; } // { "minDelayDay": 3, "maxDelayDay": 15 },
|
|
public int? dsrThreshold { get; set; } // 400,
|
|
public int? productPriceThreshold { get; set; } // 1500,
|
|
public int? dsrLogisticsExperienceThreshold { get; set; } // 400,
|
|
public bool? hasHotBrand { get; set; } // false
|
|
|
|
}
|
|
|
|
public class deliveryParam
|
|
{
|
|
public int? presaleCycleSpan { get; set; } // 15,
|
|
public int? minDelayDay { get; set; } // 2,
|
|
public int? maxDelayDay { get; set; } // 3
|
|
}
|
|
|
|
public class allAttrParam
|
|
{
|
|
public List<attrParam> attr { get; set; }
|
|
public bool? enable { get; set; } // false
|
|
}
|
|
|
|
public class attrParam
|
|
{
|
|
public string name { get; set; } // "弹力", // "面料材质成分含量"
|
|
public string type { get; set; } // "select_one", // "decimal4_unit"
|
|
public string value { get; set; } // "无弹性;有弹性;微弹力;中弹力;高弹力", // "%"
|
|
public bool? isRequired { get; set; } // true,
|
|
public string hint { get; set; } // "",
|
|
public string remark { get; set; } // "",
|
|
public bool? appendAllowed { get; set; } // false,
|
|
public attractFactorDisplayParam attractFactorDisplay { get; set; }
|
|
public releaseParam normalRelease { get; set; } // { "ruleType": 2 }, // { "ruleType": 1 },
|
|
public releaseParam quickRelease { get; set; } // { "ruleType": 0 }
|
|
}
|
|
|
|
public class attractFactorDisplayParam
|
|
{
|
|
public string prefix { get; set; } // "",
|
|
public string postfix { get; set; } // ""
|
|
}
|
|
|
|
public class enterpriseAuditInfoParam
|
|
{
|
|
public int? maxQualificationImg { get; set; } // 10,
|
|
public int? productQualificationType { get; set; } // 2,
|
|
public int? qualificationType { get; set; } // 2,
|
|
public int? productTitleQualificationType { get; set; } // 2,
|
|
public int? productImgQualificationType { get; set; } // 2,
|
|
public int? productDescQualificationType { get; set; } // 2,
|
|
public List<productQualificationParam> productQualificationList { get; set; }
|
|
}
|
|
|
|
public class productQualificationParam
|
|
{
|
|
public bool? needToApply { get; set; } // true,
|
|
public string id { get; set; } // "50000043",
|
|
public string tips { get; set; } // "当商品信息涉及特殊材质:真丝、蚕丝、香云纱、羊绒、羊毛、羊羔毛、羽绒、皮草等,需上传含CMA/CNAS认证标识的特殊材质质检报告或商品吊牌实拍图(二选一在相应资质入口上传)",
|
|
public int? type { get; set; } // 2,
|
|
public string name { get; set; } // "特殊材质质检报告",
|
|
public int? showCertForProduct { get; set; } // 0,
|
|
public releaseParam normalRelease { get; set; } // { "ruleType": 2 },
|
|
public releaseParam quickRelease { get; set; } // { "ruleType": 0 }
|
|
}
|
|
|
|
public class releaseParam
|
|
{
|
|
public int? ruleType { get; set; } // 2 // 0
|
|
}
|
|
|
|
public class auditResultInfoParam
|
|
{
|
|
public string auditId { get; set; } // "8248460949",
|
|
public int? auditStatus { get; set; } // 3,
|
|
public auditResultReasonParam auditResultReason { get; set; }
|
|
public long? auditTimestamp { get; set; } // 1767693373,
|
|
public long? submitTimestamp { get; set; } // 1767693275,
|
|
public string quaInspectId { get; set; } // "0",
|
|
public long? quaInspectTimestamp { get; set; } // 0,
|
|
public string quaInspectStatus { get; set; } // "0"
|
|
}
|
|
|
|
public class auditResultReasonParam
|
|
{
|
|
public List<ReasonItemParam> itemList { get; set; }
|
|
}
|
|
|
|
public class ReasonItemParam
|
|
{
|
|
public string key { get; set; } // "reason"
|
|
public string value { get; set; } // ""
|
|
}
|
|
}
|