feat(wxapi): 新增快速获取学生身份接口

This commit is contained in:
Fu Diwei
2024-02-07 16:03:22 +08:00
committed by RHQYZ
parent 19c9e66de7
commit 06935ff4cf
7 changed files with 81 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /intp/quickcheckstudentidentity 接口的请求。</para>
/// </summary>
public class IntpQuickCheckStudentIdentityRequest : WechatApiRequest, IInferable<IntpQuickCheckStudentIdentityRequest, IntpQuickCheckStudentIdentityResponse>
{
/// <summary>
/// 获取或设置用户唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string OpenId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置用户授权查询 Code。
/// </summary>
[Newtonsoft.Json.JsonProperty("wx_studentcheck_code")]
[System.Text.Json.Serialization.JsonPropertyName("wx_studentcheck_code")]
public string CheckCode { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /intp/quickcheckstudentidentity 接口的响应。</para>
/// </summary>
public class IntpQuickCheckStudentIdentityResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置绑定状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("bind_status")]
[System.Text.Json.Serialization.JsonPropertyName("bind_status")]
public int BindStatus { get; set; }
/// <summary>
/// 获取或设置是否是学生。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_student")]
[System.Text.Json.Serialization.JsonPropertyName("is_student")]
public bool IsStudent { get; set; }
}
}

View File

@@ -1,9 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /intp/realname/checkrealnameinfo 接口的响应。</para>
/// </summary>
public class IntpRealNameCheckRealNameInfoResponse : IntpMarketCodeActiveCodeQueryResponse
public class IntpRealNameCheckRealNameInfoResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置 OpenId 验证结果,使用分号分隔。

View File

@@ -1,9 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /intp/realname/getauthurl 接口的响应。</para>
/// </summary>
public class IntpRealNameGetAuthUrlResponse : IntpMarketCodeActiveCodeQueryResponse
public class IntpRealNameGetAuthUrlResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置授权链接。