feat(wxapi): 新增微信小店联盟带货机构解绑推客接口

This commit is contained in:
Fu Diwei
2025-11-27 15:36:30 +08:00
parent cbe374763d
commit 4320c26e53
4 changed files with 50 additions and 0 deletions

View File

@@ -6913,6 +6913,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindShopPromoterListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/api/sharer/account/api_mmecpromoter_headsupplier_unbind_promoter.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECPromoterHeadSupplierUnbindPromoterResponse> ExecuteChannelsECPromoterHeadSupplierUnbindPromoterAsync(this WechatApiClient client, Models.ChannelsECPromoterHeadSupplierUnbindPromoterRequest 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", "promoter", "headsupplier_unbind_promoter")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterHeadSupplierUnbindPromoterResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#endregion
#endregion

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口的请求。</para>
/// </summary>
public class ChannelsECPromoterHeadSupplierUnbindPromoterRequest : WechatApiRequest, IInferable<ChannelsECPromoterHeadSupplierUnbindPromoterRequest, ChannelsECPromoterHeadSupplierUnbindPromoterResponse>
{
/// <summary>
/// 获取或设置推客的微信电商平台注册的身份标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_appid")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
public string SharerAppId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/promoter/headsupplier_unbind_promoter 接口的响应。</para>
/// </summary>
public class ChannelsECPromoterHeadSupplierUnbindPromoterResponse : WechatApiResponse
{
}
}