YD_Event.Admin/YD_Event.Application/Common/Dtos/SendVerificationCodeInput.cs

12 lines
342 B
C#

#nullable enable
using System.ComponentModel.DataAnnotations;
namespace YD_Event.Application.Common.Dtos;
public class SendVerificationCodeInput
{
[Required(ErrorMessage = "手机号不能为空")]
[RegularExpression(@"^1[3456789]\d{9}$", ErrorMessage = "手机号格式不正确")]
public string Phone { get; set; } = null!;
}