From 743c06c7844c331a7773309ea38c094edf45bc29 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 29 Sep 2025 21:58:48 +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=E5=BE=AE=E4=BF=A1=E5=B0=8F=E5=BA=97=E8=81=94?= =?UTF-8?q?=E7=9B=9F=E5=B8=A6=E8=B4=A7=E6=9C=BA=E6=9E=84=E8=BE=BE=E4=BA=BA?= =?UTF-8?q?=E5=B8=A6=E8=B4=A7=E5=95=86=E5=93=81=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 --- ...eHeadSupplierCooperativeItemAddResponse.cs | 6 +++++ ...adSupplierCooperativeItemListGetRequest.cs | 27 +++++++++++++++++++ ...dSupplierCooperativeItemListGetResponse.cs | 10 +++---- ...SupplierSelectionProductsListGetRequest.cs | 7 +++++ ...lsECLeagueHeadSupplierSubItemAddRequest.cs | 19 ++++++++----- ...LeagueHeadSupplierSubItemListGetRequest.cs | 8 +++--- ...eadSupplierCooperativeItemAddResponse.json | 5 ++++ ...upplierCooperativeItemListGetResponse.json | 2 +- ...ECLeagueHeadSupplierSubItemAddRequest.json | 2 +- ...agueHeadSupplierSubItemListGetRequest.json | 2 +- 10 files changed, 70 insertions(+), 18 deletions(-) create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.json diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.cs index abdeb156..cec4ab33 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.cs @@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// public class ChannelsECLeagueHeadSupplierCooperativeItemAddResponse : WechatApiResponse { + /// + /// 获取或设置机构合作计划 ID。 + /// + [Newtonsoft.Json.JsonProperty("cooperative_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")] + public long CooperativeItemId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest.cs index 6539e5eb..c08ce3f5 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest.cs @@ -5,6 +5,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// public class ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest : WechatApiRequest, IInferable { + public static class Types + { + public class Range + { + /// + /// 获取或设置最小值。 + /// + [Newtonsoft.Json.JsonProperty("min")] + [System.Text.Json.Serialization.JsonPropertyName("min")] + public long Mininum { get; set; } + + /// + /// 获取或设置最大值。 + /// + [Newtonsoft.Json.JsonProperty("max")] + [System.Text.Json.Serialization.JsonPropertyName("max")] + public long Maxinum { get; set; } + } + } + /// /// 获取或设置佣金分配类型。 /// @@ -12,6 +32,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("commission_type")] public int CommissionType { get; set; } + /// + /// 获取或设置上架时间戳范围信息。 + /// + [Newtonsoft.Json.JsonProperty("listing_time_range")] + [System.Text.Json.Serialization.JsonPropertyName("listing_time_range")] + public Types.Range? ListingTimestampRange { get; set; } + /// /// 获取或设置分页每页数量。 /// 默认值:10 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.cs index 06a9c06c..5c55ae60 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.cs @@ -15,14 +15,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("product_id")] [System.Text.Json.Serialization.JsonPropertyName("product_id")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] - public long CooperativeItemId { get; set; } + public long ProjectId { get; set; } /// - /// 获取或设置合作计划 ID。 + /// 获取或设置机构合作计划 ID。 /// - [Newtonsoft.Json.JsonProperty("id")] - [System.Text.Json.Serialization.JsonPropertyName("id")] - public long PlanId { get; set; } + [Newtonsoft.Json.JsonProperty("cooperative_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")] + public long CooperativeItemId { get; set; } /// /// 获取或设置计划链接。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SelectionProduct/ChannelsECLeagueHeadSupplierSelectionProductsListGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SelectionProduct/ChannelsECLeagueHeadSupplierSelectionProductsListGetRequest.cs index 45c44dea..78bfff2b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SelectionProduct/ChannelsECLeagueHeadSupplierSelectionProductsListGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SelectionProduct/ChannelsECLeagueHeadSupplierSelectionProductsListGetRequest.cs @@ -66,6 +66,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("promote_time_range")] public Types.Range? PromoteTimestampRange { get; set; } + /// + /// 获取或设置创建时间戳范围信息。 + /// + [Newtonsoft.Json.JsonProperty("create_time_range")] + [System.Text.Json.Serialization.JsonPropertyName("create_time_range")] + public Types.Range? CreateTimestampRange { get; set; } + /// /// 获取或设置保障标识信息。 /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.cs index 235bf418..b46d8dc0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.cs @@ -6,17 +6,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECLeagueHeadSupplierSubItemAddRequest : WechatApiRequest, IInferable { /// - /// 获取或设置计划 ID。 + /// 获取或设置机构合作计划 ID。 /// - [Newtonsoft.Json.JsonProperty("id")] - [System.Text.Json.Serialization.JsonPropertyName("id")] - public long PlanId { get; set; } + [Newtonsoft.Json.JsonProperty("cooperative_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")] + public long CooperativeItemId { get; set; } /// - /// 获取或设置达人佣金率(范围:0~90)。 + /// 获取或设置达人佣金率(范围:0~90)。与字段 二选一。 /// [Newtonsoft.Json.JsonProperty("ratio")] [System.Text.Json.Serialization.JsonPropertyName("ratio")] - public int Ratio { get; set; } + public int? Ratio { get; set; } + + /// + /// 获取或设置达人精确佣金率(单位:万分数)。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("ratio_ext")] + [System.Text.Json.Serialization.JsonPropertyName("ratio_ext")] + public int? RatioExt { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.cs index 7b3e3317..3a7a429e 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.cs @@ -6,11 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECLeagueHeadSupplierSubItemListGetRequest : WechatApiRequest, IInferable { /// - /// 获取或设置计划 ID。 + /// 获取或设置机构合作计划 ID。 /// - [Newtonsoft.Json.JsonProperty("id")] - [System.Text.Json.Serialization.JsonPropertyName("id")] - public long SubItemId { get; set; } + [Newtonsoft.Json.JsonProperty("cooperative_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")] + public long CooperativeItemId { get; set; } /// /// 获取或设置分页每页数量。 diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.json new file mode 100644 index 00000000..40a0738d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "cooperative_item_id": 0 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.json index efa5ff28..45beb2df 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.json @@ -4,7 +4,7 @@ "list": [ { "product_id": 1, - "id": 123, + "cooperative_item_id": 123, "head_supplier_item_link": "weixinstore/10001" } ], diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.json index 84994ca7..6554c598 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.json @@ -1,4 +1,4 @@ { - "id": 0, + "cooperative_item_id": 0, "ratio": 100 } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.json index 78300ce6..73d0a487 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.json @@ -1,5 +1,5 @@ { - "id": 0, + "cooperative_item_id": 0, "page_size": 10, "next_key": "" }