微信小店商品上传 50%

This commit is contained in:
wule committed 2026-01-09 19:32:27 +08:00
1 parent 8f9bae9875
commit 343b01ab90
83 files changed
+12877 -656

No files matched your search

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.WXParam
{
public class WXGetShortTitleParam
{
public string productTitle { get; set; } // "大码妈妈女装裤子阔口裤保暖",
public List<string> headImgUrls { get; set; } // ["https://wst.wxapp.tc.qq.com/160/20304/snscosdownload/SH/reserved/6xykWLEnztLdv6DMZticK1qOlvspjA8N5W55WGAEBK65jk1c864AV1iblCuiat3cgEx7v6vAnfhZIBWzrZY66Akkw", ...]
public List<categorieParam> categories { get; set; }
}
public class categorieParam
{
public string catId { get; set; } // "10000111",
public string catName { get; set; } // "服饰内衣"
}
}
@@ -0,0 +1,101 @@
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>();
}
}
@@ -0,0 +1,755 @@
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; } = 0;
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 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 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 barCode { get; set; } = "";
public stockInfoParam stockInfo { get; set; } = new stockInfoParam();
public saleParamParam saleParam { get; set; } = new saleParamParam();
public skuDeliverInfoParam skuDeliverInfo { get; set; } = new skuDeliverInfoParam();
}
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 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 string catId { get; set; } // "颜色",
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 string catId { get; set; } // "1767670333303",
public string name { get; set; } // "黑色",
public string fCatId { get; set; } // "2000000000006",
public string catType { get; set; } // 0,
public string brandCat { get; set; } // "0",
public categoryValueCatInfo catInfo { 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 productKeyDetailParam productKey { get; set; }
}
public class productKeyDetailParam
{
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<propParam> param { get; set; } = new List<propParam>();
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<object> qualificationList { get; set; } = new List<object>();
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; }
/// <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; }
public int? originUploadSource { get; set; } = 6;
public int? virtualType { get; set; } = 2;
public int? productType { get; set; } = 1;
/// <summary>
/// extCode 货号
/// </summary>
public string spuCode { 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; }
/// <summary>
/// 售后信息
/// </summary>
public afterSaleInfoParam afterSaleInfo { get; set; }
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; }
public leagueItemInfoParam leagueItemInfo { get; set; }
}
public class timingOnsaleInfoParam
{
public int? status { get; set; } = 0;
public int? isHidePrice { 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; } = 1;
public int? freightInsurance { get; set; } = 1; // 运费险
public int? fastRefund { get; set; } = 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 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<object> categoryNames { get; set; } = new List<object>();
public string recommendSource { get; set; } = "none";
public string interfaceName { get; set; } = "";
public int? useNewInterface { get; set; } = 0;
}
public class skuListParam
{
public 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; } // ["https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/695c863e00022b1f09b35b0e7ad91715000000a000004f50", ...]
public List<object> detailVideos { get; set; } = new List<object>();
public List<object> detailVideoInfo { get; set; } = new List<object>();
public List<object> carouselImg { get; set; } = new List<object>();
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 propParam
{
public List<categoryPropParam> categorys { get; set; }
}
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; } // ""
}
public class productKeyParam
{
/// <summary>
/// 商品id(保存草稿箱的时候才能获取到,提交上架的时候需要填写)
/// </summary>
public string productId { get; set; } // "10000408181873"
}
}
+8
View File
@@ -33,6 +33,7 @@ namespace AllBase.Model.Result
public string Cookies2 { get; set; } = "";
public string pddid { get; set; }
public ConcurrentList<string> AntiContents { get; set; } = new ConcurrentList<string>();
public string openid { get; set; }
public Dictionary<string, string> DictMultiCookies { get; set; } = new Dictionary<string, string>();
public string LoginStatus { get; set; }
public string LoginStatus2 { get; set; }
@@ -274,7 +275,14 @@ namespace AllBase.Model.Result
public string AccountId { get; set; }
public string AccountName { get; set; }
public string LoginStatus { get; set; }
/// <summary>
/// 拼多多校验数据列表
/// </summary>
public string AntiContent { get; set; }
/// <summary>
/// 微信小店开放Id信息
/// </summary>
public string openid { get; set; }
}
public class ShopOrderStatisticsInfo
@@ -0,0 +1,134 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.WXResult
{
/// <summary>
/// 根据类目获取的类目属性信息
/// </summary>
public class GetCateOnShelfInfo
{
public int? ret { get; set; } // 0,
public int? code { get; set; } // 0,
public int? success { get; set; } // true,
public int? onShelf { get; set; } // true,
public List<categoryResult> category { get; set; }
public brandResult brand { get; set; }
public int? categoryType { get; set; } // 2,
public int? categoryCatAuthType { get; set; } // 2,
public int? isGoodsSpecialCategory { get; set; } // true
}
public class brandResult
{
public long? brandId { get; set; } // 2100000000,
public long? catId { get; set; } // 547705,
public string name { get; set; } // "无品牌"
}
public class categoryResult
{
public string id { get; set; } // "547705",
public string name { get; set; } // "牛仔裤",
public string fId { get; set; } // "10000672",
public int? level { get; set; } // 4,
public int? disableScene { get; set; } // 0,
public bool? leaf { get; set; } // true,
public int? state { get; set; } // 0,
public string tips { get; set; } // "",
public string detail { get; set; } // "",
public string catId { get; set; } // "547705",
public string fCatId { get; set; } // "10000672"
public bool? catAuth { get; set; } // true
public catInfoResult catInfo { get; set; }
}
public class catInfoResult
{
public int? catLevel { get; set; } // 3,
public bool? onlyWriteOffInShop { get; set; } // false,
public bool? isVirtualGoods { get; set; } // false,
public int? highestPriceFixing { get; set; } // 250000,
public enterpriseAuditInfoResult enterpriseAuditInfo { get; set; }
public productAttrResult productAttr { get; set; }
public productAttrResult saleAttr { get; set; }
public productAttrResult sizeAttr { get; set; }
public presaleDataResult presaleData { get; set; }
public List<object> confirmReceiptOptions { get; set; }
}
public class presaleDataResult
{
public bool? presaleSwitch { get; set; } // true,
public deliveryResult deliveryAfterPresale { get; set; }
public deliveryResult deliveryAfterPay { get; set; }
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 deliveryResult
{
public int? presaleCycleSpan { get; set; } // 15,
public int? minDelayDay { get; set; } // 2,
public int? maxDelayDay { get; set; } // 3
}
public class productAttrResult
{
public List<attrResult> attr { get; set; }
public bool? enable { get; set; } // false
}
public class attrResult
{
public string name { get; set; } // "款式",
public string type { get; set; } // "select_one",
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 attractFactorDisplayResult attractFactorDisplay { get; set; }
public ReleaseResult normalRelease { get; set; } // { "ruleType": 1 },
public ReleaseResult quickRelease { get; set; } // { "ruleType": 0 }
}
public class attractFactorDisplayResult
{
public string prefix { get; set; } // "",
public string postfix { get; set; } // ""
}
public class enterpriseAuditInfoResult
{
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<productQualificationResult> productQualificationList { get; set; }
}
public class productQualificationResult
{
public bool? needToApply { get; set; } // true,
public string id { get; set; } // "50000044",
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 ReleaseResult normalRelease { get; set; }
public ReleaseResult quickRelease { get; set; }
}
public class ReleaseResult
{
public int? ruleType { get; set; } // 2
}
}
@@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.WXResult
{
public class WXGetProdCateInfo
{
public predInfoResult predInfo { get; set; }
public List<aiCategoryResult> aiCategoryList { get; set; }
public string version { get; set; } // "ProductClsRAG",
public List<long> noQualificationCatIds { get; set; } // [ 547705, 547704, 547701 ],
public List<depositCatInfoResult> depositCatInfos { get; set; }
public string visionCallMethod { get; set; } // "ProductClsRAG"
}
public class depositCatInfoResult
{
public long? catId { get; set; } // 547705,
public int? amountToPay { get; set; } // 0,
public bool? error { get; set; } // false
}
public class aiCategoryResult
{
public long? id { get; set; } // 547705,
public List<aiCatePathResult> paths { get; set; }
public int? depositAmount { get; set; } // 0,
public bool? catAuth { get; set; } // true,
public List<object> limitSubjectTypes { get; set; } // [ ]
}
public class aiCatePathResult
{
public string id { get; set; } // "10000111",
public string name { get; set; } // "服饰内衣",
public List<string> sonIdList { get; set; } // [ "10000397", "10000115", "10000112", "10000113", "10000114" ],
/// <summary>
/// 父类目ID
/// </summary>
public string fId { get; set; } // "0",
public int? level { get; set; } // 1,
public bool? leaf { get; set; } // false
public int? state { get; set; } // 0,
public bool? hasTrialCategory { get; set; } // false,
public bool? isTrialCategory { get; set; } // false,
public bool? isLocalLife { get; set; } // false
}
public class predInfoResult
{
public List<CatResResult> firstCatRes { get; set; }
public List<CatResResult> secondCatRes { get; set; }
public List<CatResResult> thirdCatRes { get; set; }
public List<object> singleSecondCatRes { get; set; }
public List<object> singleFirstCatRes { get; set; }
public int? isSupportedCate { get; set; } // 1
}
public class CatResResult
{
public long? catId { get; set; } // 10000111,
public string catName { get; set; } // "服饰内衣",
public int? level { get; set; } // 1
public string modelVersion { get; set; } // "商品标题含'加绒加厚、保暖'等关键词,这表示裤子具备加绒保暖功能。主图展示了加绒内衬,也符合【服饰内衣:女装:裤子:加绒裤】类目特征。"
}
}