From 949c3cd88671606b3acac0a20ed6d491d5d76d18 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 4 Nov 2024 21:02:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A7=86=E9=A2=91=E5=8F=B7=E5=B0=8F=E5=BA=97?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChannelsECCategoryAddRequest.cs | 27 ++++++++- .../ChannelsECCategoryAllResponse.cs | 15 +++++ ...tegoryAvailableSonCategoriesGetResponse.cs | 17 ++++++ .../ChannelsECCategoryDetailResponse.cs | 2 +- ...nelsECLeagueHeadSupplierItemGetResponse.cs | 12 +++- ...agueHeadSupplierWindowGetDetailResponse.cs | 12 +++- .../ECProduct/ChannelsECProductAddRequest.cs | 10 +++- .../ECProduct/ChannelsECProductGetResponse.cs | 10 +++- .../ChannelsECProductUpdateRequest.cs | 10 +++- .../ChannelsECWindowProductGetRequest.cs | 9 ++- .../ChannelsECWindowProductGetResponse.cs | 13 ++++- .../ChannelsECCategoryAddRequest.json | 19 ++++++- .../ChannelsECCategoryAllResponse.json | 57 ++++++++++++++++++- ...goryAvailableSonCategoriesGetResponse.json | 22 ++++++- ...lsECLeagueHeadSupplierItemGetResponse.json | 14 +++++ ...ueHeadSupplierWindowGetDetailResponse.json | 14 +++++ .../ChannelsECProductAddRequest.json | 7 ++- .../ChannelsECProductGetResponse.json | 9 +-- .../ChannelsECProductUpdateRequest.json | 7 ++- .../ChannelsECWindowProductGetResponse.json | 3 +- 20 files changed, 262 insertions(+), 27 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAddRequest.cs index b2b3f99f..971fa166 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAddRequest.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models @@ -13,6 +14,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { + public class Category + { + /// + /// 获取或设置分类 ID。 + /// + [Newtonsoft.Json.JsonProperty("cat_id")] + [System.Text.Json.Serialization.JsonPropertyName("cat_id")] + public long CategoryId { get; set; } + } + public class Brand { /// @@ -27,23 +38,33 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置一级类目 ID。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("level1")] [System.Text.Json.Serialization.JsonPropertyName("level1")] - public long FirstCategoryId { get; set; } + public long? FirstCategoryId { get; set; } /// /// 获取或设置二级类目 ID。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("level2")] [System.Text.Json.Serialization.JsonPropertyName("level2")] - public long SecondCategoryId { get; set; } + public long? SecondCategoryId { get; set; } /// /// 获取或设置三级类目 ID。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("level3")] [System.Text.Json.Serialization.JsonPropertyName("level3")] - public long ThirdCategoryId { get; set; } + public long? ThirdCategoryId { get; set; } + + /// + /// 获取或设置新版分类列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public IList? CategoryV2List { get; set; } /// /// 获取或设置资质材料图片 MediaId 列表。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAllResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAllResponse.cs index 426e8381..d67926a7 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAllResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAllResponse.cs @@ -49,6 +49,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("level")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] public int Level { get; set; } + + /// + /// 获取或设置是否是叶子节点。 + /// + [Newtonsoft.Json.JsonProperty("leaf")] + [System.Text.Json.Serialization.JsonPropertyName("leaf")] + public bool? IsLeaf { get; set; } } public class Qualification @@ -141,8 +148,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] public Types.Category[] CategoryList { get; set; } = default!; + + /// + /// 获取或设置新版类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public Types.Category[] CategoryV2List { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.cs index b4aa92a6..8af3ba0b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.cs @@ -1,3 +1,5 @@ +using System; + namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// @@ -31,14 +33,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("f_cat_id")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] public long ParentCategoryId { get; set; } + + /// + /// 获取或设置是否是叶子节点。 + /// + [Newtonsoft.Json.JsonProperty("leaf")] + [System.Text.Json.Serialization.JsonPropertyName("leaf")] + public bool? IsLeaf { get; set; } } } /// /// 获取或设置类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cat_list")] [System.Text.Json.Serialization.JsonPropertyName("cat_list")] public Types.Category[] CategoryList { get; set; } = default!; + + /// + /// 获取或设置新版类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cat_list_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cat_list_v2")] + public Types.Category[] CategoryV2List { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryDetailResponse.cs index 869a0a64..ac1b0b97 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCategory/ChannelsECCategoryDetailResponse.cs @@ -60,7 +60,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string Type { get; set; } = default!; /// - /// 获取或设置新版属性类型(后续将替代 字段)。 + /// 获取或设置新版属性类型。 /// [Newtonsoft.Json.JsonProperty("type_v2")] [System.Text.Json.Serialization.JsonPropertyName("type_v2")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.cs index 0f8d03a3..a61e4017 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.cs @@ -1,3 +1,5 @@ +using System; + namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// @@ -34,9 +36,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] - public new Types.Category[] CategoryList { get; set; } = default!; + public new Types.Category[]? CategoryList { get; set; } + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public Types.Category[]? CategoryV2List { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs index 8e96e8aa..1be48c67 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs @@ -1,3 +1,5 @@ +using System; + namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// @@ -55,9 +57,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] - public Types.Category[] CategoryList { get; set; } = default!; + public Types.Category[]? CategoryList { get; set; } = default!; + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public Types.Category[]? CategoryV2List { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductAddRequest.cs index a17b35e1..6203f9b4 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductAddRequest.cs @@ -383,9 +383,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] - public IList CategoryList { get; set; } = new List(); + public IList? CategoryList { get; set; } + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public IList? CategoryV2List { get; set; } /// /// 获取或设置商品属性列表。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductGetResponse.cs index 1fc6bbed..32a389c2 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductGetResponse.cs @@ -412,9 +412,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] - public Types.Category[] CategoryList { get; set; } = default!; + public Types.Category[]? CategoryList { get; set; } + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public Types.Category[]? CategoryV2List { get; set; } /// /// 获取或设置商品属性列表。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductUpdateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductUpdateRequest.cs index 6f1df5c6..829cc1ef 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductUpdateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/ChannelsECProductUpdateRequest.cs @@ -167,9 +167,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品类目列表。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("cats")] [System.Text.Json.Serialization.JsonPropertyName("cats")] - public IList CategoryList { get; set; } = new List(); + public IList? CategoryList { get; set; } + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public IList? CategoryV2List { get; set; } /// /// 获取或设置商品属性列表。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs index 96d6a552..67cb3f6f 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /channels/ec/window/product/get 接口的请求。 @@ -18,5 +18,12 @@ [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string AppId { get; set; } = string.Empty; + + /// + /// 获取或设置是否查询带货商品。 + /// + [Newtonsoft.Json.JsonProperty("need_cps_product")] + [System.Text.Json.Serialization.JsonPropertyName("need_cps_product")] + public bool? RequireCPSProduct { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs index 48a452d8..088ecc22 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs @@ -1,3 +1,5 @@ +using System; + namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// @@ -157,10 +159,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品三级类目 ID。 /// + [Obsolete("相关接口或字段于 2024-10-28 下线。")] [Newtonsoft.Json.JsonProperty("third_category_id")] [System.Text.Json.Serialization.JsonPropertyName("third_category_id")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] - public long ThirdCategoryId { get; set; } + public long? ThirdCategoryId { get; set; } + + /// + /// 获取或设置新版商品三级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("leaf_category_id")] + [System.Text.Json.Serialization.JsonPropertyName("leaf_category_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long? LeafCategoryId { get; set; } /// /// 获取或设置商品状态。 diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAddRequest.json index e54ca601..14d174cd 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAddRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAddRequest.json @@ -3,7 +3,24 @@ "level1": 7419, "level2": 7439, "level3": 7448, - "certificate": [ "THE_MEDIA_ID_1", "THE_MEDIA_ID_2" ], + "cats_v2": [ + { + "cat_id": 6033 + }, + { + "cat_id": 6057 + }, + { + "cat_id": 6091 + }, + { + "cat_id": 6093 + } + ], + "certificate": [ + "THE_MEDIA_ID_1", + "THE_MEDIA_ID_2" + ], "brand_list": [ { "brand_id": 1001 }, { "brand_id": 1002 } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAllResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAllResponse.json index 9f05a5ce..e9d6de82 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAllResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAllResponse.json @@ -12,19 +12,16 @@ "level": 3 }, "qua": { - "qua_id": "0", "need_to_apply": true, "tips": "", "mandatory": true }, "product_qua": { - "qua_id": "0", "need_to_apply": true, "tips": "", "mandatory": true }, "brand_qua": { - "qua_id": "0", "need_to_apply": true, "tips": "", "mandatory": true @@ -71,5 +68,59 @@ } ] } + ], + "cats_v2": [ + { + "cat_and_qua": [ + { + "cat": { + "cat_id": "545709", + "name": "公路电子收费/ETC/OBU", + "f_cat_id": "10000131", + "level": 3, + "leaf": true + }, + "qua": { + "qua_id": "1111608", + "need_to_apply": true, + "tips": "1、主体要求\n(1)入驻主体类型仅限于企业。\n(2)开店主体公司注册资本不低于100万,注册时间不少于1年。\n\n2、行业资质\n(1)交通运输部指定全国各省份的ETC发行机构或合作机构。需提交交通部或交通厅关于ETC发行服务机构的信息公开单位证明截图,或同等效力的证明材料;参考示例:《证明材料示例》https://docs.qq.com/doc/DVXBuUHpPSFdmYmJW\n(2)需提交关于合法合规经营产品的承诺函。承诺函模板:https://docs.qq.com/doc/p/68313cd4ca24c6f0577d5ed3578c906ae9d67c91", + "mandatory": true + }, + "brand_qua": { + "qua_id": "1111609", + "need_to_apply": true, + "tips": "1、属于品牌商标权利人/一级授权经销商。\n2、品牌须在京东有开设自营旗舰店/自营官方旗舰店或在天猫有开设官方旗舰店店铺;\n3、品牌须在在京东开设的自营旗舰店/自营官方旗舰店或在天猫开设的官方旗舰店店铺主营类目需和申请视频号橱窗定向准入的类目一致,请提供相应截图。\n4、品牌商标注册证需包含所申请范围", + "mandatory": true + }, + "product_qua_list": [ + + ] + }, + { + "cat": { + "cat_id": "10000131", + "name": "车载电器", + "f_cat_id": "10000126", + "level": 2, + "leaf": false + }, + "product_qua_list": [ + + ] + }, + { + "cat": { + "cat_id": "10000126", + "name": "汽车", + "f_cat_id": "0", + "level": 1, + "leaf": false + }, + "product_qua_list": [ + + ] + } + ] + } ] } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.json index 843f879d..a4b67325 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCategory/ChannelsECCategoryAvailableSonCategoriesGetResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "cat_list": [ @@ -12,5 +12,25 @@ "f_cat_id": 0, "name": "鞋帽" } + ], + "cat_list_v2": [ + { + "cat_id": 1, + "f_cat_id": 0, + "name": "服饰", + "leaf": false + }, + { + "cat_id": 2, + "f_cat_id": 0, + "name": "鞋帽", + "leaf": false + }, + { + "cat_id": 3, + "f_cat_id": 0, + "name": "生鲜水产", + "leaf": false + } ] } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.json index 123dc12e..9048a397 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Item/ChannelsECLeagueHeadSupplierItemGetResponse.json @@ -26,6 +26,20 @@ { "cat_id": "1452" } + ], + "cats_v2": [ + { + "cat_id": "1421" + }, + { + "cat_id": "1443" + }, + { + "cat_id": "1452" + }, + { + "cat_id": "1476" + } ] } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.json index 5f34fd5f..bf41605f 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.json @@ -26,6 +26,20 @@ { "cat_id": "1452" } + ], + "cats_v2": [ + { + "cat_id": "1421" + }, + { + "cat_id": "1443" + }, + { + "cat_id": "1452" + }, + { + "cat_id": "1476" + } ] } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductAddRequest.json index b5bc7784..40698991 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductAddRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductAddRequest.json @@ -9,12 +9,13 @@ "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ" ] }, - "cats": [ + "cats": [], + "cats_v2": [ { - "cat_id": "6033" + "cat_id": "10000111" }, { - "cat_id": "6057" + "cat_id": "10000113" }, { "cat_id": "6091" diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductGetResponse.json index 67fb3d15..da0952ef 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductGetResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductGetResponse.json @@ -14,15 +14,16 @@ "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ" ] }, - "cats": [ + "cats": [], + "cats_v2": [ { - "cat_id": "1" + "cat_id": "10000111" }, { - "cat_id": "2" + "cat_id": "10000113" }, { - "cat_id": "3" + "cat_id": "6091" } ], "attrs": [ diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductUpdateRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductUpdateRequest.json index 0fe92f9d..1ddc2472 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductUpdateRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECProduct/ChannelsECProductUpdateRequest.json @@ -11,12 +11,13 @@ ], "desc": "物美价廉" }, - "cats": [ + "cats": [], + "cats_v2": [ { - "cat_id": "6033" + "cat_id": "10000111" }, { - "cat_id": "6057" + "cat_id": "10000113" }, { "cat_id": "6091" diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECWindow/ChannelsECWindowProductGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECWindow/ChannelsECWindowProductGetResponse.json index 5be2445b..b51fa803 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECWindow/ChannelsECWindowProductGetResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECWindow/ChannelsECWindowProductGetResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "product": { @@ -7,6 +7,7 @@ "title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机", "img_url": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ", "third_category_id": 6091, + "leaf_category_id": 6091, "status": 1, "market_price": 1500, "selling_price": 1300,