From dcf82d041a6e26e1bce6414ac8fdae2e3cbbf75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= Date: Fri, 16 Sep 2022 19:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Config/SwaggerDoc.xml | 6 ++++++ .../Controllers/AccountController.cs | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml index 704bf226..31e156df 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml @@ -61,6 +61,12 @@ + + + 验证码 + + + Json To Sql 类比模式,通用模型 diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs index f82fc405..b69e7fd6 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs @@ -167,5 +167,16 @@ namespace Yi.Framework.ApiMicroservice.Controllers } return Result.Error("更新失败!"); } + + /// + /// 验证码 + /// + /// + [AllowAnonymous] + [HttpGet] + public async Task CaptchaImage() + { + return Result.Success().SetData(new { uuid=123,img="dasdas"}); + } } }