feat: 为微信服务号用户信息响应模型添加JsonPropertyName映射并移除无用字段

This commit is contained in:
chenchun
2025-08-29 13:41:50 +08:00
parent ad8f48f36b
commit 5d29fd6d3b
3 changed files with 18 additions and 28 deletions

View File

@@ -1,3 +1,5 @@
using System.Text.Json.Serialization;
namespace Yi.Framework.AiHub.Domain.Managers.Fuwuhao;
/// <summary>
@@ -8,35 +10,30 @@ public class UserBaseInfoResponse
/// <summary>
/// 访问令牌
/// </summary>
[JsonPropertyName("access_token")]
public string AccessToken { get; set; }
/// <summary>
/// 过期时间(秒)
/// </summary>
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
/// <summary>
/// 刷新令牌
/// </summary>
[JsonPropertyName("refresh_token")]
public string RefreshToken { get; set; }
/// <summary>
/// 用户OpenID
/// </summary>
[JsonPropertyName("openid")]
public string OpenId { get; set; }
/// <summary>
/// 授权作用域
/// </summary>
[JsonPropertyName("scope")]
public string Scope { get; set; }
/// <summary>
/// 是否为快照用户
/// </summary>
public int IsSnapshotUser { get; set; }
/// <summary>
/// 用户UnionID
/// </summary>
public string UnionId { get; set; }
}