feat(wxapi): 随官方更新第三方平台授权账号管理、代商家注册小程序等相关接口模型

This commit is contained in:
Fu Diwei
2023-12-25 13:51:24 +08:00
parent 9fd93e5780
commit e14d0dfe83
6 changed files with 17 additions and 69 deletions

View File

@@ -1,31 +1,10 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/component/api_get_authorizer_option 接口的请求。</para>
/// </summary>
public class CgibinComponentApiGetAuthorizerOptionRequest : WechatApiRequest, IInferable<CgibinComponentApiGetAuthorizerOptionRequest, CgibinComponentApiGetAuthorizerOptionResponse>
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置第三方平台 AppId。如果不指定将使用构造 <see cref="WechatApiClient"/> 时的 <see cref="WechatApiClientOptions.AppId"/> 参数。
/// </summary>
[Newtonsoft.Json.JsonProperty("component_appid")]
[System.Text.Json.Serialization.JsonPropertyName("component_appid")]
public string? ComponentAppId { get; set; }
/// <summary>
/// 获取或设置授权方 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("authorizer_appid")]
[System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")]
public string AuthorizerAppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置选项名称。
/// </summary>

View File

@@ -1,31 +1,10 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/component/api_set_authorizer_option 接口的请求。</para>
/// </summary>
public class CgibinComponentApiSetAuthorizerOptionRequest : WechatApiRequest, IInferable<CgibinComponentApiSetAuthorizerOptionRequest, CgibinComponentApiSetAuthorizerOptionResponse>
{
/// <summary>
/// 获取或设置第三方平台 AccessToken。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string ComponentAccessToken { get; set; } = string.Empty;
/// <summary>
/// 获取或设置第三方平台 AppId。如果不指定将使用构造 <see cref="WechatApiClient"/> 时的 <see cref="WechatApiClientOptions.AppId"/> 参数。
/// </summary>
[Newtonsoft.Json.JsonProperty("component_appid")]
[System.Text.Json.Serialization.JsonPropertyName("component_appid")]
public string? ComponentAppId { get; set; }
/// <summary>
/// 获取或设置授权方 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("authorizer_appid")]
[System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")]
public string AuthorizerAppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置选项名称。
/// </summary>