From 65ac020d7279c5317d73561908220aed3cae3dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Thu, 14 Apr 2022 23:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml | 4 ++-- .../Controllers/TestController.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml index e0877a59..24e6af67 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml @@ -59,7 +59,7 @@ - 执行sql返回对应Dto + 执行Sql返回 @@ -75,7 +75,7 @@ - + 策略授权测试 diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs index 7be9570a..2f4f1232 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/TestController.cs @@ -36,7 +36,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// [HttpGet] // 特点:化繁为简!意框架仓储代理上下文对象,用起来就是爽,但最好按规范来爽! - // 规范:控制器严禁使用切换仓储方法,控制器严禁使用DB上下文对象,其它怎么爽怎么来! + // 规范:控制器不建议使用切换仓储方法、控制器严禁使用DB上下文对象,其它怎么爽怎么来! public async Task DbTest() { //非常好,使用UserService的特有方法 @@ -51,7 +51,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers //挺不错,依赖注入其他仓储(就tm一张表,现在自己注入自己) await _iUserService._repository.GetListAsync(); - //严禁操作,直接切换其他仓储(就tm一张表,现在自己切换自己) + //不建议操作,直接切换其他仓储(就tm一张表,现在自己切换自己) await _iUserService._repository.ChangeRepository>().GetListAsync(); //恭喜你已经毕业了!此后将有一天,接手到这个的软件的程序员将破口大骂。 @@ -61,7 +61,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers } /// - /// 执行Sql返回对应Dto + /// 执行Sql返回 /// /// [HttpGet] @@ -99,7 +99,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// [HttpGet] [Authorize(PolicyName.Sid)] - public Result AutnTest() + public Result AuthTest() { return Result.Success(); }