LoginDto.cs 466 B

1234567891011121314151617181920
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace Dto
  4. {
  5. public class LoginDto
  6. {
  7. /// <summary>
  8. /// 用户名
  9. /// </summary>
  10. [Required(ErrorMessage = "用户名不能为空")]
  11. public string AdminName { get; set; }
  12. /// <summary>
  13. /// 登录密码
  14. /// </summary>
  15. [Required(ErrorMessage = "登录密码不能为空")]
  16. public string Password { get; set; }
  17. }
  18. }