mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 13:03:43 +08:00
feat(wxapi): 新增获取稳定版接口调用凭据接口
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/stable_token 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinStableTokenRequest : WechatApiRequest, IInferable<CgibinTokenRequest, CgibinTokenResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。如果不指定将使用构造 <see cref="WechatApiClient"/> 时的 <see cref="WechatApiClientOptions.AppId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppSecret。如果不指定将使用构造 <see cref="WechatApiClient"/> 时的 <see cref="WechatApiClientOptions.AppSecret"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("secret")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("secret")]
|
||||
public string? AppSecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// <i>(使用默认值即可,无需修改)</i>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("grant_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("grant_type")]
|
||||
public string GrantType { get; set; } = "client_credential";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否强制刷新。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("force_refresh")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("force_refresh")]
|
||||
public bool ForceRefresh { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/stable_token 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinStableTokenResponse : CgibinTokenResponse
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user