更新菜单控制器
This commit is contained in:
@@ -100,7 +100,12 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<Result> AddChildrenMenu(ChildrenDto<menu> childrenDto)
|
||||
{
|
||||
{
|
||||
var _menu = await _menuService.GetEntityById(childrenDto.parentId);
|
||||
var _children= await _menuService.AddChildrenMenu(_menu);
|
||||
_children = childrenDto.data;
|
||||
return Result.Success();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,8 +92,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
[HttpPost]
|
||||
public async Task<Result> SetRoleByUser(IdsListDto<int> idsListDto)
|
||||
{
|
||||
有bug:无法运行,500报错;
|
||||
var _user = this.HttpContext.GetCurrentUserInfo();
|
||||
|
||||
await _userService.SetRolesByUser(idsListDto.ids2, idsListDto.ids1);
|
||||
return Result.Success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user