feat(wxapi): 随官方更新微信小店商品相关接口模型

This commit is contained in:
Fu Diwei 2025-07-11 14:06:11 +08:00
parent 424ddecfe2
commit 229c91aaba
18 changed files with 49 additions and 70 deletions

View File

@ -1291,6 +1291,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public static async Task<Models.ChannelsECCategoryAvailableSonCategoriesGetResponse> ExecuteChannelsECCategoryAvailableSonCategoriesGetAsync(this WechatApiClient client, Models.ChannelsECCategoryAvailableSonCategoriesGetRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
@ -1339,6 +1340,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public static async Task<Models.ChannelsECCategoryAuditGetResponse> ExecuteChannelsECCategoryAuditGetAsync(this WechatApiClient client, Models.ChannelsECCategoryAuditGetRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));
@ -1387,6 +1389,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public static async Task<Models.ChannelsECCategoryListGetResponse> ExecuteChannelsECCategoryListGetAsync(this WechatApiClient client, Models.ChannelsECCategoryListGetRequest request, CancellationToken cancellationToken = default)
{
if (client is null) throw new ArgumentNullException(nameof(client));

View File

@ -1,8 +1,11 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/audit/get 接口的请求。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryAuditGetRequest : WechatApiRequest, IInferable<ChannelsECCategoryAuditGetRequest, ChannelsECCategoryAuditGetResponse>
{
/// <summary>

View File

@ -1,8 +1,11 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/audit/get 接口的响应。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryAuditGetResponse : WechatApiResponse
{
public static class Types

View File

@ -1,8 +1,11 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/availablesoncategories/get 接口的请求。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryAvailableSonCategoriesGetRequest : WechatApiRequest, IInferable<ChannelsECCategoryAvailableSonCategoriesGetRequest, ChannelsECCategoryAvailableSonCategoriesGetResponse>
{
/// <summary>

View File

@ -5,6 +5,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /channels/ec/category/availablesoncategories/get 接口的响应。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryAvailableSonCategoriesGetResponse : WechatApiResponse
{
public static class Types

View File

@ -1,8 +1,11 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/list/get 接口的请求。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryListGetRequest : WechatApiRequest, IInferable<ChannelsECCategoryListGetRequest, ChannelsECCategoryListGetResponse>
{
}

View File

@ -1,8 +1,11 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/list/get 接口的响应。</para>
/// </summary>
[Obsolete("相关接口或字段于 2025-07-01 下线。")]
public class ChannelsECCategoryListGetResponse : WechatApiResponse
{
public static class Types

View File

@ -354,10 +354,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置商品副标题。
/// </summary>
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
[Newtonsoft.Json.JsonProperty("sub_title")]
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
public string? SubTitle { get; set; }
/// <summary>
/// 获取或设置商品短标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("short_title")]
[System.Text.Json.Serialization.JsonPropertyName("short_title")]
public string? ShortTitle { get; set; }
/// <summary>
/// 获取或设置主图 URL 列表。
/// </summary>

View File

@ -383,10 +383,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置商品副标题。
/// </summary>
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
[Newtonsoft.Json.JsonProperty("sub_title")]
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
public string? SubTitle { get; set; }
/// <summary>
/// 获取或设置商品短标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("short_title")]
[System.Text.Json.Serialization.JsonPropertyName("short_title")]
public string? ShortTitle { get; set; }
/// <summary>
/// 获取或设置主图 URL 列表。
/// </summary>

View File

@ -146,10 +146,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置商品副标题。
/// </summary>
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
[Newtonsoft.Json.JsonProperty("sub_title")]
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
public string? SubTitle { get; set; }
/// <summary>
/// 获取或设置商品短标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("short_title")]
[System.Text.Json.Serialization.JsonPropertyName("short_title")]
public string? ShortTitle { get; set; }
/// <summary>
/// 获取或设置主图 URL 列表。
/// </summary>

View File

@ -1,8 +0,0 @@
{
"errcode": 0,
"errmsg": "ok",
"data": {
"status": 9,
"reject_reason": "请重新提交审核"
}
}

View File

@ -1,36 +0,0 @@
{
"errcode": 0,
"errmsg": "ok",
"cat_list": [
{
"cat_id": 1,
"f_cat_id": 0,
"name": "服饰"
},
{
"cat_id": 2,
"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
}
]
}

View File

@ -1,14 +0,0 @@
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"cat_id": "1003",
"qua_id": "0"
},
{
"cat_id": "1096",
"qua_id": "6"
}
]
}

View File

@ -1,6 +1,6 @@
{
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"sub_title": "随时随地,一起趣玩。",
"short_title": "随时随地,一起趣玩。",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],

View File

@ -5,7 +5,7 @@
"product_id": "123456789",
"out_product_id": "OUT_PRODUCT_ID_TEST",
"title": "任天堂 Nintendo Switch 国行续航增强版",
"sub_title": "【国行Switch更安心的保修服务更快的国行服务器】一台主机三种模式游戏掌机随时随地一起趣玩",
"short_title": "【国行Switch更安心的保修服务更快的国行服务器】一台主机三种模式游戏掌机随时随地一起趣玩",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],

View File

@ -1,7 +1,7 @@
{
"product_id": "10000000089215",
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"sub_title": "随时随地,一起趣玩。【更新】",
"short_title": "随时随地,一起趣玩。【更新】",
"head_imgs": [
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
],