Files
Yi.Framework/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/Fuwuhao/UserInfoResponse.cs

51 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Text.Json.Serialization;
namespace Yi.Framework.AiHub.Domain.Managers.Fuwuhao;
/// <summary>
/// 用户信息响应对象
/// </summary>
public class UserInfoResponse
{
/// <summary>
/// 用户OpenID
/// </summary>
[JsonPropertyName("openid")]
public string OpenId { get; set; }
/// <summary>
/// 用户昵称
/// </summary>
[JsonPropertyName("nickname")]
public string Nickname { get; set; }
/// <summary>
/// 用户性别值为1时是男性值为2时是女性值为0时是未知
/// </summary>
[JsonPropertyName("sex")]
public int Sex { get; set; }
/// <summary>
/// 用户个人资料填写的省份
/// </summary>
[JsonPropertyName("province")]
public string Province { get; set; }
/// <summary>
/// 普通用户个人资料填写的城市
/// </summary>
[JsonPropertyName("city")]
public string City { get; set; }
/// <summary>
/// 国家如中国为CN
/// </summary>
[JsonPropertyName("country")]
public string Country { get; set; }
/// <summary>
/// 用户头像最后一个数值代表正方形头像大小有0、46、64、96、132数值可选0代表640*640正方形头像
/// </summary>
[JsonPropertyName("headimgurl")]
public string HeadImgUrl { get; set; }
}