LoginBodyDto.cs 772 B

12345678910111213141516171819202122232425262728293031
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Dto
  3. {
  4. public class LoginBodyDto
  5. {
  6. /// <summary>
  7. /// 用户名
  8. /// </summary>
  9. [Required(ErrorMessage = "用户名不能为空")]
  10. public string username { get; set; }
  11. /// <summary>
  12. /// 用户密码
  13. /// </summary>
  14. [Required(ErrorMessage = "密码不能为空")]
  15. public string password { get; set; }
  16. /// <summary>
  17. /// 验证码
  18. /// </summary>
  19. public string? code { get; set; }
  20. /// <summary>
  21. /// 唯一标识
  22. /// </summary>
  23. public string? uuid { get; set; } = "";
  24. public string? loginIP { get; set; }
  25. public string? clientId { get; set; }
  26. }
  27. }