mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 09:54:44 +08:00
feat(wxapi): 随官方更新微信小店联盟带货机构达人带货商品相关接口模型
This commit is contained in:
@@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ChannelsECLeagueHeadSupplierCooperativeItemAddResponse : WechatApiResponse
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierCooperativeItemListGetRequest, ChannelsECLeagueHeadSupplierCooperativeItemListGetResponse>
|
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>
|
||||||
/// 获取或设置佣金分配类型。
|
/// 获取或设置佣金分配类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -12,6 +32,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("commission_type")]
|
[System.Text.Json.Serialization.JsonPropertyName("commission_type")]
|
||||||
public int CommissionType { get; set; }
|
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>
|
/// <summary>
|
||||||
/// 获取或设置分页每页数量。
|
/// 获取或设置分页每页数量。
|
||||||
/// <para>默认值:10</para>
|
/// <para>默认值:10</para>
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||||
public long CooperativeItemId { get; set; }
|
public long ProjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置合作计划 ID。
|
/// 获取或设置机构合作计划 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("id")]
|
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
|
||||||
public long PlanId { get; set; }
|
public long CooperativeItemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置计划链接。
|
/// 获取或设置计划链接。
|
||||||
|
|||||||
@@ -66,6 +66,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("promote_time_range")]
|
[System.Text.Json.Serialization.JsonPropertyName("promote_time_range")]
|
||||||
public Types.Range? PromoteTimestampRange { get; set; }
|
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>
|
||||||
/// 获取或设置保障标识信息。
|
/// 获取或设置保障标识信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -6,17 +6,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public class ChannelsECLeagueHeadSupplierSubItemAddRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemAddRequest, ChannelsECLeagueHeadSupplierSubItemAddResponse>
|
public class ChannelsECLeagueHeadSupplierSubItemAddRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemAddRequest, ChannelsECLeagueHeadSupplierSubItemAddResponse>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置计划 ID。
|
/// 获取或设置机构合作计划 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("id")]
|
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
|
||||||
public long PlanId { get; set; }
|
public long CooperativeItemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置达人佣金率(范围:0~90)。
|
/// 获取或设置达人佣金率(范围:0~90)。与字段 <see cref="RatioExt"/> 二选一。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public class ChannelsECLeagueHeadSupplierSubItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemListGetRequest, ChannelsECLeagueHeadSupplierSubItemListGetResponse>
|
public class ChannelsECLeagueHeadSupplierSubItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierSubItemListGetRequest, ChannelsECLeagueHeadSupplierSubItemListGetResponse>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置计划 ID。
|
/// 获取或设置机构合作计划 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("id")]
|
[Newtonsoft.Json.JsonProperty("cooperative_item_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
[System.Text.Json.Serialization.JsonPropertyName("cooperative_item_id")]
|
||||||
public long SubItemId { get; set; }
|
public long CooperativeItemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置分页每页数量。
|
/// 获取或设置分页每页数量。
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"errcode": 0,
|
||||||
|
"errmsg": "ok",
|
||||||
|
"cooperative_item_id": 0
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"product_id": 1,
|
"product_id": 1,
|
||||||
"id": 123,
|
"cooperative_item_id": 123,
|
||||||
"head_supplier_item_link": "weixinstore/10001"
|
"head_supplier_item_link": "weixinstore/10001"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"cooperative_item_id": 0,
|
||||||
"ratio": 100
|
"ratio": 100
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"cooperative_item_id": 0,
|
||||||
"page_size": 10,
|
"page_size": 10,
|
||||||
"next_key": ""
|
"next_key": ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user