mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 05:13:17 +08:00
feat(wxapi): 新增视频号商店上传生鲜质检信息接口
This commit is contained in:
parent
9064961e2e
commit
3661e3bc8c
@ -2930,6 +2930,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderVirtualTeleNumberGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/order/freshinspect/submit 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/order/fresh_inspect_submit.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECOrderFreshInspectSubmitResponse> ExecuteChannelsECOrderFreshInspectSubmitAsync(this WechatApiClient client, Models.ChannelsECOrderFreshInspectSubmitRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "order", "freshinspect", "submit")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderFreshInspectSubmitResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
#region ECOrder/Address
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/order/address/update 接口。</para>
|
||||
|
@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/freshinspect/submit 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECOrderFreshInspectSubmitRequest : WechatApiRequest, IInferable<ChannelsECOrderFreshInspectSubmitRequest, ChannelsECOrderFreshInspectSubmitResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuditItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核项名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_name")]
|
||||
public string ItemName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核项值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_value")]
|
||||
public string ItemValue { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核项列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_items")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_items")]
|
||||
public IList<Types.AuditItem> AuditItemList { get; set; } = new List<Types.AuditItem>();
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/freshinspect/submit 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECOrderFreshInspectSubmitResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"order_id": "12345",
|
||||
"audit_items": [
|
||||
{
|
||||
"item_name": "product_express_pic_url",
|
||||
"item_value": "https://store.mp.video.tencent-cloud.com/x"
|
||||
},
|
||||
{
|
||||
"item_name": "product_packaging_box_panoramic_video_url",
|
||||
"item_value": "https://store.mp.video.tencent-cloud.com/y"
|
||||
},
|
||||
{
|
||||
"item_name": "product_unboxing_panoramic_video_url",
|
||||
"item_value": "https://store.mp.video.tencent-cloud.com/z"
|
||||
},
|
||||
{
|
||||
"item_name": "single_product_detail_panoramic_video_url",
|
||||
"item_value": "https://store.mp.video.tencent-cloud.com/p"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user