:sparkles:新增手机号登录功能

This commit is contained in:
不做码农
2023-11-19 21:15:41 +08:00
parent f859748825
commit df36de52fa
10 changed files with 193 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.ServiceCore.Model.Dto
{
public class PhoneLoginDto
{
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 唯一标识
/// </summary>
public string Uuid { get; set; } = "";
public string LoginIP { get; set; }
[Required(ErrorMessage = "手机号不能为空")]
public string PhoneNum { get; set; }
/// <summary>
/// 手机短信验证码
/// </summary>
//[Required(ErrorMessage = "短信验证码不能为空")]
public string PhoneCode { get; set; }
}
}