mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号小店分享员专属商品链接相关接口
This commit is contained in:
@@ -16,6 +16,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享员 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||
public string? UnionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享员昵称。
|
||||
/// </summary>
|
||||
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_h5url 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductH5UrlRequest : WechatApiRequest, IInferable<ChannelsECSharerGetSharerProductH5UrlRequest, ChannelsECSharerGetSharerProductH5UrlResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分享员 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_h5url 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductH5UrlResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 H5 短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_h5url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_h5url")]
|
||||
public string ProductH5Url { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_qrcode 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductQrcodeRequest : WechatApiRequest, IInferable<ChannelsECSharerGetSharerProductQrcodeRequest, ChannelsECSharerGetSharerProductQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分享员 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_qrcode 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品二维码链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_qrcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_qrcode")]
|
||||
public string ProductQrcode { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_taglink 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductTagLinkRequest : WechatApiRequest, IInferable<ChannelsECSharerGetSharerProductTagLinkRequest, ChannelsECSharerGetSharerProductTagLinkResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分享员 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_product_taglink 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetSharerProductTagLinkResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品微信口令。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_taglink")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_taglink")]
|
||||
public string ProductTagLink { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -12,6 +12,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享员 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||
public string? UnionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享员昵称。
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user