feat(wxapi): 随官方更新微信小店联盟带货机构达人带货商品相关接口模型
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeLint / Lint (push) Has been cancelled

This commit is contained in:
Fu Diwei
2025-09-29 21:58:48 +08:00
parent dcfea90d8c
commit 743c06c784
10 changed files with 70 additions and 18 deletions

View File

@@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
public class ChannelsECLeagueHeadSupplierCooperativeItemAddResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置机构合作计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
public long CooperativeItemId { get; set; }
}
}

View File

@@ -5,6 +5,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
public class ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest, ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse>
{
public static class Types
{
public class Range
{
/// <summary>
/// 获取或设置最小值。
/// </summary>
[Newtonsoft.Json.JsonProperty("min")]
[System.Text.Json.Serialization.JsonPropertyName("min")]
public long Mininum { get; set; }
/// <summary>
/// 获取或设置最大值。
/// </summary>
[Newtonsoft.Json.JsonProperty("max")]
[System.Text.Json.Serialization.JsonPropertyName("max")]
public long Maxinum { get; set; }
}
}
/// <summary>
/// 获取或设置佣金分配类型。
/// </summary>
@@ -12,6 +32,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("commission_type")]
public int CommissionType { get; set; }
/// <summary>
/// 获取或设置上架时间戳范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("listing_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("listing_time_range")]
public Types.Range? ListingTimestampRange { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>

View File

@@ -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; }
/// <summary>
/// 获取或设置合作计划 ID。
/// 获取或设置机构合作计划 ID。
/// </summary>
[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; }
/// <summary>
/// 获取或设置计划链接。

View File

@@ -66,6 +66,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("promote_time_range")]
public Types.Range? PromoteTimestampRange { get; set; }
/// <summary>
/// 获取或设置创建时间戳范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
public Types.Range? CreateTimestampRange { get; set; }
/// <summary>
/// 获取或设置保障标识信息。
/// </summary>

View File

@@ -6,17 +6,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeagueHeadSupplierSubItemAddRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemAddRequest, ChannelsECLeagueHeadSupplierSubItemAddResponse>
{
/// <summary>
/// 获取或设置计划 ID。
/// 获取或设置机构合作计划 ID。
/// </summary>
[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; }
/// <summary>
/// 获取或设置达人佣金率范围090
/// 获取或设置达人佣金率范围090与字段 <see cref="RatioExt"/> 二选一。
/// </summary>
[Newtonsoft.Json.JsonProperty("ratio")]
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
public int Ratio { get; set; }
public int? Ratio { get; set; }
/// <summary>
/// 获取或设置达人精确佣金率(单位:万分数)。与字段 <see cref="Ratio"/> 二选一。
/// </summary>
[Newtonsoft.Json.JsonProperty("ratio_ext")]
[System.Text.Json.Serialization.JsonPropertyName("ratio_ext")]
public int? RatioExt { get; set; }
}
}

View File

@@ -6,11 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeagueHeadSupplierSubItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemListGetRequest, ChannelsECLeagueHeadSupplierSubItemListGetResponse>
{
/// <summary>
/// 获取或设置计划 ID。
/// 获取或设置机构合作计划 ID。
/// </summary>
[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; }
/// <summary>
/// 获取或设置分页每页数量。

View File

@@ -4,7 +4,7 @@
"list": [
{
"product_id": 1,
"id": 123,
"cooperative_item_id": 123,
"head_supplier_item_link": "weixinstore/10001"
}
],

View File

@@ -1,5 +1,5 @@
{
"id": 0,
"cooperative_item_id": 0,
"page_size": 10,
"next_key": ""
}