检查所有接口,修正模型类启用可空特性后代码的模型验证错误
大石头 authored at 2023-10-07 19:05:14
557.00 B
Stardust
namespace Stardust.Server.Models;

/// <summary>访问令牌输入参数</summary>
public class TokenInModel
{
    /// <summary>授权类型</summary>
    public String? grant_type { get; set; }

    /// <summary>用户名</summary>
    public String? UserName { get; set; }

    /// <summary>密码</summary>
    public String? Password { get; set; }

    /// <summary>客户端唯一标识。一般是IP@进程</summary>
    public String? ClientId { get; set; }

    /// <summary>刷新令牌</summary>
    public String? refresh_token { get; set; }
}