From 53ee0a68605433db362abae3ed1af03fd23a7832 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 08 八月 2025 15:57:33 +0800 Subject: [PATCH] pref:优化 --- FlexJobApi.Core/Utils/SmsUtils/SendVerifyCodeModel.cs | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/FlexJobApi.Core/Models/UserServer/Auths/Commands/SendVerifyCodeCommand.cs b/FlexJobApi.Core/Utils/SmsUtils/SendVerifyCodeModel.cs similarity index 61% rename from FlexJobApi.Core/Models/UserServer/Auths/Commands/SendVerifyCodeCommand.cs rename to FlexJobApi.Core/Utils/SmsUtils/SendVerifyCodeModel.cs index b527e3a..df89b0f 100644 --- a/FlexJobApi.Core/Models/UserServer/Auths/Commands/SendVerifyCodeCommand.cs +++ b/FlexJobApi.Core/Utils/SmsUtils/SendVerifyCodeModel.cs @@ -1,6 +1,8 @@ -锘縰sing MediatR; +锘縰sing Furion.DataValidation; +using MediatR; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -10,16 +12,17 @@ /// <summary> /// 鍙戦�侀獙璇佺爜 /// </summary> - [Resource([EnumResourceController.Auth], AllowAnonymous = true)] - public class SendVerifyCodeCommand : IRequest<Guid> + public class SendVerifyCodeModel { /// <summary> /// 鎵嬫満鍙风爜 /// </summary> + [Required, DataValidation(ValidationTypes.PhoneNumber)] public string PhoneNumber { get; set; } + /// <summary> /// 鐭俊妯℃澘缂栧彿 /// </summary> - public EnumSmsTemplateType TemplateCode { get; set; } + public EnumSmsTemplateCode TemplateCode { get; set; } } } -- Gitblit v1.9.1