using System.ComponentModel.DataAnnotations; namespace Dto { public class PhoneLoginDto { /// /// 验证码 /// public string Code { get; set; } /// /// 唯一标识 /// public string Uuid { get; set; } = ""; public string LoginIP { get; set; } [Required(ErrorMessage = "手机号不能为空")] public string PhoneNum { get; set; } /// /// 手机短信验证码 /// //[Required(ErrorMessage = "短信验证码不能为空")] public string PhoneCode { get; set; } } }