mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-18 04:33:16 +08:00
feat(wxapi): 随官方更新开放平台应用通过 Code 获取 AccessToken 的接口模型
This commit is contained in:
parent
5eae91e126
commit
402651723d
@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /sns/oauth2/access_token 接口的响应。</para>
|
/// <para>表示 [GET] /sns/oauth2/access_token 接口的响应。</para>
|
||||||
@ -33,6 +33,13 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||||
public string OpenId { get; set; } = default!;
|
public string OpenId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置用户全局标识。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||||
|
public string? UnionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户授权的作用域,使用逗号分隔。
|
/// 获取或设置用户授权的作用域,使用逗号分隔。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@ -15,7 +15,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public string OpenId { get; set; } = default!;
|
public string OpenId { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户全局标识。只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段。
|
/// 获取或设置用户全局标识。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("unionid")]
|
[Newtonsoft.Json.JsonProperty("unionid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
[System.Text.Json.Serialization.JsonPropertyName("unionid")]
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"access_token": "ACCESS_TOKEN",
|
"access_token": "ACCESS_TOKEN",
|
||||||
"expires_in": 7200,
|
"expires_in": 7200,
|
||||||
"refresh_token": "REFRESH_TOKEN",
|
"refresh_token": "REFRESH_TOKEN",
|
||||||
"openid": "OPENID",
|
"openid": "OPENID",
|
||||||
"scope": "SCOPE"
|
"scope": "SCOPE",
|
||||||
|
"unionid": "o6_bmasdasdsad6_2sgVt7hMZOPfL"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user