完善注释
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
// 特点:化繁为简!意框架仓储代理上下文对象,用起来就是爽,但最好按规范来爽!
|
||||
// 规范:控制器严禁使用切换仓储方法,控制器严禁使用DB上下文对象,其它怎么爽怎么来!
|
||||
// 规范:控制器不建议使用切换仓储方法、控制器严禁使用DB上下文对象,其它怎么爽怎么来!
|
||||
public async Task<Result> DbTest()
|
||||
{
|
||||
//非常好,使用UserService的特有方法
|
||||
@@ -51,7 +51,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
//挺不错,依赖注入其他仓储(就tm一张表,现在自己注入自己)
|
||||
await _iUserService._repository.GetListAsync();
|
||||
|
||||
//严禁操作,直接切换其他仓储(就tm一张表,现在自己切换自己)
|
||||
//不建议操作,直接切换其他仓储(就tm一张表,现在自己切换自己)
|
||||
await _iUserService._repository.ChangeRepository<Repository<UserEntity>>().GetListAsync();
|
||||
|
||||
//恭喜你已经毕业了!此后将有一天,接手到这个的软件的程序员将破口大骂。
|
||||
@@ -61,7 +61,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 执行Sql返回对应Dto
|
||||
/// 执行Sql返回
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
@@ -99,7 +99,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Authorize(PolicyName.Sid)]
|
||||
public Result AutnTest()
|
||||
public Result AuthTest()
|
||||
{
|
||||
return Result.Success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user