Skip to content

Commit 743c06c

Browse files
committed
feat(wxapi): 随官方更新微信小店联盟带货机构达人带货商品相关接口模型
1 parent dcfea90 commit 743c06c

10 files changed

+70
-18
lines changed

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemAddResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
55
/// </summary>
66
public class ChannelsECLeagueHeadSupplierCooperativeItemAddResponse : WechatApiResponse
77
{
8+
/// <summary>
9+
/// 获取或设置机构合作计划 ID。
10+
/// </summary>
11+
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
12+
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
13+
public long CooperativeItemId { get; set; }
814
}
915
}

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,40 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
55
/// </summary>
66
public class ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest, ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse>
77
{
8+
public static class Types
9+
{
10+
public class Range
11+
{
12+
/// <summary>
13+
/// 获取或设置最小值。
14+
/// </summary>
15+
[Newtonsoft.Json.JsonProperty("min")]
16+
[System.Text.Json.Serialization.JsonPropertyName("min")]
17+
public long Mininum { get; set; }
18+
19+
/// <summary>
20+
/// 获取或设置最大值。
21+
/// </summary>
22+
[Newtonsoft.Json.JsonProperty("max")]
23+
[System.Text.Json.Serialization.JsonPropertyName("max")]
24+
public long Maxinum { get; set; }
25+
}
26+
}
27+
828
/// <summary>
929
/// 获取或设置佣金分配类型。
1030
/// </summary>
1131
[Newtonsoft.Json.JsonProperty("commission_type")]
1232
[System.Text.Json.Serialization.JsonPropertyName("commission_type")]
1333
public int CommissionType { get; set; }
1434

35+
/// <summary>
36+
/// 获取或设置上架时间戳范围信息。
37+
/// </summary>
38+
[Newtonsoft.Json.JsonProperty("listing_time_range")]
39+
[System.Text.Json.Serialization.JsonPropertyName("listing_time_range")]
40+
public Types.Range? ListingTimestampRange { get; set; }
41+
1542
/// <summary>
1643
/// 获取或设置分页每页数量。
1744
/// <para>默认值:10</para>

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ public class CooperativeItem
1515
[Newtonsoft.Json.JsonProperty("product_id")]
1616
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
1717
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
18-
public long CooperativeItemId { get; set; }
18+
public long ProjectId { get; set; }
1919

2020
/// <summary>
21-
/// 获取或设置合作计划 ID。
21+
/// 获取或设置机构合作计划 ID。
2222
/// </summary>
23-
[Newtonsoft.Json.JsonProperty("id")]
24-
[System.Text.Json.Serialization.JsonPropertyName("id")]
25-
public long PlanId { get; set; }
23+
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
24+
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
25+
public long CooperativeItemId { get; set; }
2626

2727
/// <summary>
2828
/// 获取或设置计划链接。

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SelectionProduct/ChannelsECLeagueHeadSupplierSelectionProductsListGetRequest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ public class Range
6666
[System.Text.Json.Serialization.JsonPropertyName("promote_time_range")]
6767
public Types.Range? PromoteTimestampRange { get; set; }
6868

69+
/// <summary>
70+
/// 获取或设置创建时间戳范围信息。
71+
/// </summary>
72+
[Newtonsoft.Json.JsonProperty("create_time_range")]
73+
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
74+
public Types.Range? CreateTimestampRange { get; set; }
75+
6976
/// <summary>
7077
/// 获取或设置保障标识信息。
7178
/// </summary>

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddRequest.cs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
66
public class ChannelsECLeagueHeadSupplierSubItemAddRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemAddRequest, ChannelsECLeagueHeadSupplierSubItemAddResponse>
77
{
88
/// <summary>
9-
/// 获取或设置计划 ID。
9+
/// 获取或设置机构合作计划 ID。
1010
/// </summary>
11-
[Newtonsoft.Json.JsonProperty("id")]
12-
[System.Text.Json.Serialization.JsonPropertyName("id")]
13-
public long PlanId { get; set; }
11+
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
12+
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
13+
public long CooperativeItemId { get; set; }
1414

1515
/// <summary>
16-
/// 获取或设置达人佣金率(范围:0~90)。
16+
/// 获取或设置达人佣金率(范围:0~90)。与字段 <see cref="RatioExt"/> 二选一。
1717
/// </summary>
1818
[Newtonsoft.Json.JsonProperty("ratio")]
1919
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
20-
public int Ratio { get; set; }
20+
public int? Ratio { get; set; }
21+
22+
/// <summary>
23+
/// 获取或设置达人精确佣金率(单位:万分数)。与字段 <see cref="Ratio"/> 二选一。
24+
/// </summary>
25+
[Newtonsoft.Json.JsonProperty("ratio_ext")]
26+
[System.Text.Json.Serialization.JsonPropertyName("ratio_ext")]
27+
public int? RatioExt { get; set; }
2128
}
2229
}

src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
66
public class ChannelsECLeagueHeadSupplierSubItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemListGetRequest, ChannelsECLeagueHeadSupplierSubItemListGetResponse>
77
{
88
/// <summary>
9-
/// 获取或设置计划 ID。
9+
/// 获取或设置机构合作计划 ID。
1010
/// </summary>
11-
[Newtonsoft.Json.JsonProperty("id")]
12-
[System.Text.Json.Serialization.JsonPropertyName("id")]
13-
public long SubItemId { get; set; }
11+
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
12+
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
13+
public long CooperativeItemId { get; set; }
1414

1515
/// <summary>
1616
/// 获取或设置分页每页数量。
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"errcode": 0,
3+
"errmsg": "ok",
4+
"cooperative_item_id": 0
5+
}

test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/CooperativeItem/ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"list": [
55
{
66
"product_id": 1,
7-
"id": 123,
7+
"cooperative_item_id": 123,
88
"head_supplier_item_link": "weixinstore/10001"
99
}
1010
],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"id": 0,
2+
"cooperative_item_id": 0,
33
"ratio": 100
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": 0,
2+
"cooperative_item_id": 0,
33
"page_size": 10,
44
"next_key": ""
55
}

0 commit comments

Comments
 (0)