Admin.net框架
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.

31 lines
784 B

5 days ago
namespace Admin.NET.Core.Service;
/// <summary>
/// 用户登录参数
/// </summary>
public class LoginInput
{
/// <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; }
/// <summary>
/// 验证码Id
/// </summary>
public long CodeId { get; set; }
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
}