PhoneLoginDto.cs 676 B

12345678910111213141516171819202122232425
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Dto
  3. {
  4. public class PhoneLoginDto
  5. {
  6. /// <summary>
  7. /// 验证码
  8. /// </summary>
  9. public string Code { get; set; }
  10. /// <summary>
  11. /// 唯一标识
  12. /// </summary>
  13. public string Uuid { get; set; } = "";
  14. public string LoginIP { get; set; }
  15. [Required(ErrorMessage = "手机号不能为空")]
  16. public string PhoneNum { get; set; }
  17. /// <summary>
  18. /// 手机短信验证码
  19. /// </summary>
  20. //[Required(ErrorMessage = "短信验证码不能为空")]
  21. public string PhoneCode { get; set; }
  22. }
  23. }