YD_Event.Admin/YD_Event.Application/Common/Dtos/SendVerificationCodeInput.cs
2026-03-30 20:47:40 +08:00

14 lines
381 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!;
public string? Code { get; set; }
}