框架重构
清除多余的业务
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]/[action]")]
|
||||
[Authorize]
|
||||
public class UserController : ControllerBase
|
||||
{
|
||||
private readonly ILogger<UserController> _logger;
|
||||
@@ -32,5 +31,10 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
{
|
||||
return Result.Success().SetData(await _iUserService.GetListAsync());
|
||||
}
|
||||
[HttpPost]
|
||||
public async Task<Result> Add(UserEntity userEntity)
|
||||
{
|
||||
return Result.Success().SetData(await _iUserService.InsertAsync(userEntity));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user