mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 16:50:43 +08:00
78 lines
2.8 KiB
C#
78 lines
2.8 KiB
C#
using System;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [GET] /sns/userinfo 接口的响应。</para>
|
|
/// </summary>
|
|
public class SnsUserInfoResponse : WechatApiResponse
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置用户唯一标识。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("openid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
|
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>
|
|
[Newtonsoft.Json.JsonProperty("nickname")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
|
public string Nickname { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户的性别。
|
|
/// </summary>
|
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
|
[Newtonsoft.Json.JsonProperty("sex")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sex")]
|
|
public int? Sex { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户所在国家。
|
|
/// </summary>
|
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
|
[Newtonsoft.Json.JsonProperty("country")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
|
public string? Country { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户所在省份。
|
|
/// </summary>
|
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
|
[Newtonsoft.Json.JsonProperty("province")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
|
public string? Province { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户所在城市。
|
|
/// </summary>
|
|
[Obsolete("相关接口或字段于 2021-12-31 下线。")]
|
|
[Newtonsoft.Json.JsonProperty("city")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
|
public string? City { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户的头像 URL。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("headimgurl")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("headimgurl")]
|
|
public string HeadImageUrl { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户特权信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("privilege")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("privilege")]
|
|
public string[]? PrivilegeList { get; set; }
|
|
}
|
|
}
|