You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
707 B

using System.ComponentModel.DataAnnotations;
namespace Entity.Dto.Req
{
/// <summary>
/// 用户登录参数
/// </summary>
public class LoginReq
{
/// <summary>
/// 账号
/// </summary>
/// <example>admin</example>
[Required(ErrorMessage = "账号不能为空"), MinLength(2, ErrorMessage = "账号不能少于2个字符")]
public string Account { get; set; }
/// <summary>
/// 密码
/// </summary>
/// <example>123456</example>
[Required(ErrorMessage = "密码不能为空"), MinLength(3, ErrorMessage = "密码不能少于3个字符")]
public string Password { get; set; }
}
}