mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-19 01:58:14 +08:00
feat(wxapi): 随官方更新第三方平台获取授权帐号详情接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/component/api_get_authorizer_info 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/component/api_get_authorizer_info 接口的响应。</para>
|
||||||
@@ -19,6 +19,13 @@
|
|||||||
[Newtonsoft.Json.JsonProperty("id")]
|
[Newtonsoft.Json.JsonProperty("id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置类型名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||||
|
public string? Name { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class VerifyType : ServiceType
|
public class VerifyType : ServiceType
|
||||||
@@ -161,6 +168,23 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("visit_status")]
|
[System.Text.Json.Serialization.JsonPropertyName("visit_status")]
|
||||||
public int VisitStatus { get; set; }
|
public int VisitStatus { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class BasicConfiguration
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否已经绑定手机号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("is_phone_configured")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("is_phone_configured")]
|
||||||
|
public bool IsPhoneConfigured { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否已经绑定邮箱。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("is_email_configured")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("is_email_configured")]
|
||||||
|
public bool IsEmailConfigured { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -219,6 +243,13 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("signature")]
|
[System.Text.Json.Serialization.JsonPropertyName("signature")]
|
||||||
public string? Signature { get; set; }
|
public string? Signature { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置二维码图片 URL。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||||
|
public string? QrcodeUrl { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置功能信息。
|
/// 获取或设置功能信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -227,18 +258,32 @@
|
|||||||
public Types.Business Business { get; set; } = default!;
|
public Types.Business Business { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二维码图片 URL。
|
/// 获取或设置小程序信息。
|
||||||
/// </summary>
|
|
||||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
|
||||||
public string QrcodeUrl { get; set; } = default!;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置小程序配置信息。
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("MiniProgramInfo")]
|
[Newtonsoft.Json.JsonProperty("MiniProgramInfo")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("MiniProgramInfo")]
|
[System.Text.Json.Serialization.JsonPropertyName("MiniProgramInfo")]
|
||||||
public Types.MiniProgram? MiniProgram { get; set; }
|
public Types.MiniProgram? MiniProgram { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置账号状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("account_status")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("account_status")]
|
||||||
|
public int AccountStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置注册方式。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("register_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("register_type")]
|
||||||
|
public int? RegisterType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置基础配置信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("basic_config")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("basic_config")]
|
||||||
|
public Types.BasicConfiguration? BasicConfiguration { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Authorization
|
public class Authorization
|
||||||
@@ -257,6 +302,27 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")]
|
[System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")]
|
||||||
public string AuthorizerAppId { get; set; } = default!;
|
public string AuthorizerAppId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置授权方 AccessToken。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("authorizer_access_token")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("authorizer_access_token")]
|
||||||
|
public string? AuthorizerAccessToken { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置授权方 RefreshToken。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("authorizer_refresh_token")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("authorizer_refresh_token")]
|
||||||
|
public string? AuthorizerRefreshToken { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置授权方 AccessToken 有效期(单位:秒)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("expires_in")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("expires_in")]
|
||||||
|
public int? ExpiresIn { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置授权给开发者的权限集列表。
|
/// 获取或设置授权给开发者的权限集列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/component/api_query_auth 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/component/api_query_auth 接口的响应。</para>
|
||||||
@@ -18,16 +18,37 @@
|
|||||||
public class ScopeCategory
|
public class ScopeCategory
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置权限分类 ID。
|
/// 获取或设置权限集 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("id")]
|
[Newtonsoft.Json.JsonProperty("id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置权限集类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||||
|
public int Type { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置权限集名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||||
|
public string Name { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置权限集描述。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("desc")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("desc")]
|
||||||
|
public string Description { get; set; } = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置权限分类分类信息。
|
/// 获取或设置权限集信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("funcscope_category")]
|
[Newtonsoft.Json.JsonProperty("funcscope_category")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("funcscope_category")]
|
[System.Text.Json.Serialization.JsonPropertyName("funcscope_category")]
|
||||||
|
Reference in New Issue
Block a user