From cb73982ef0b97a578121b7eed8010c47a0589e28 Mon Sep 17 00:00:00 2001 From: zpc Date: Fri, 12 Jul 2024 16:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=AF=81=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- src/0-core/HuanMeng.Utility/Class1.cs | 9 --------- .../Other => HuanMeng.Utility}/PhoneNumberValidator.cs | 4 +--- .../Controllers/AccountController.cs | 6 ++++-- 4 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 src/0-core/HuanMeng.Utility/Class1.cs rename src/0-core/{HuanMeng.MiaoYu.Code/Other => HuanMeng.Utility}/PhoneNumberValidator.cs (88%) diff --git a/README.md b/README.md index 4606568..92729b3 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# HuanMengProject \ No newline at end of file +# HuanMengProject 开发文档 + + +### \ No newline at end of file diff --git a/src/0-core/HuanMeng.Utility/Class1.cs b/src/0-core/HuanMeng.Utility/Class1.cs deleted file mode 100644 index 1b9f903..0000000 --- a/src/0-core/HuanMeng.Utility/Class1.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace HuanMeng.Utility -{ - public class Class1 - { - - } -} diff --git a/src/0-core/HuanMeng.MiaoYu.Code/Other/PhoneNumberValidator.cs b/src/0-core/HuanMeng.Utility/PhoneNumberValidator.cs similarity index 88% rename from src/0-core/HuanMeng.MiaoYu.Code/Other/PhoneNumberValidator.cs rename to src/0-core/HuanMeng.Utility/PhoneNumberValidator.cs index 57611c9..efb7fb3 100644 --- a/src/0-core/HuanMeng.MiaoYu.Code/Other/PhoneNumberValidator.cs +++ b/src/0-core/HuanMeng.Utility/PhoneNumberValidator.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Text.RegularExpressions; -using System.Threading.Tasks; -namespace HuanMeng.MiaoYu.Code.Other +namespace HuanMeng.Utility { /// /// 手机号 diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/AccountController.cs b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/AccountController.cs index efad636..e1a9305 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/AccountController.cs +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/AccountController.cs @@ -6,6 +6,7 @@ using HuanMeng.MiaoYu.Code.Users; using HuanMeng.MiaoYu.Model.Dto; using HuanMeng.MiaoYu.Model.Dto.Account; using HuanMeng.MiaoYu.WebApi.Base; +using HuanMeng.Utility; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; @@ -29,10 +30,11 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers } /// - /// 发送手机号验证码 + /// 发送手机号验证码 /// - /// 手机号 + /// /// + /// [HttpPost] public async Task> SendPhoneNumber([FromBody] RequestPhoneNumberModel phone) {