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:
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/get_user_notify 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetUserNotifyRequest : WechatApiRequest, IInferable<WxaGetUserNotifyRequest, WxaGetUserNotifyResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡片类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_type")]
|
||||
public int NotifyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置动态更新令牌。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_code")]
|
||||
public string NotifyCode { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/get_user_notify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetUserNotifyResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class NotifyInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置卡片类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_type")]
|
||||
public int NotifyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通知状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_state")]
|
||||
public int CodeState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通知过期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_expire_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_expire_time")]
|
||||
public long CodeExpireTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡片状态与状态相关字段 JSON 数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("content_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content_json")]
|
||||
public string? ContentJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务卡片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_info")]
|
||||
public Types.NotifyInfo NotifyInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/set_user_notifyext 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSetUserNotifyExtraRequest : WechatApiRequest, IInferable<WxaSetUserNotifyExtraRequest, WxaSetUserNotifyExtraResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通知类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_type")]
|
||||
public int NotifyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置动态更新令牌。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_code")]
|
||||
public string NotifyCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置扩展信息 JSON 数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_json")]
|
||||
public string? ExtraJson { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/set_user_notifyext 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSetUserNotifyExtraResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/set_user_notify 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSetUserNotifyRequest : WechatApiRequest, IInferable<WxaSetUserNotifyRequest, WxaSetUserNotifyResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置通知类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_type")]
|
||||
public int NotifyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置动态更新令牌。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_code")]
|
||||
public string NotifyCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡片状态与状态相关字段 JSON 数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("content_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content_json")]
|
||||
public string? ContentJson { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号验证字段 JSON 数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("check_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("check_json")]
|
||||
public string? CheckJson { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/set_user_notify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSetUserNotifyResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/commit 接口的请求。</para>
|
||||
@@ -17,7 +17,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_json")]
|
||||
public string JsonExtra { get; set; } = "{}";
|
||||
public string ExtraJson { get; set; } = "{}";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户自定义版本号。
|
||||
|
Reference in New Issue
Block a user