更新菜单控制器

This commit is contained in:
lzw
2021-10-15 21:50:42 +08:00
parent cbfb19ade8
commit 030d5c6b50
6 changed files with 16 additions and 13 deletions

View File

@@ -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();
}
}
}

View File

@@ -92,8 +92,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
[HttpPost]
public async Task<Result> SetRoleByUser(IdsListDto<int> idsListDto)
{
bug500;
var _user = this.HttpContext.GetCurrentUserInfo();
await _userService.SetRolesByUser(idsListDto.ids2, idsListDto.ids1);
return Result.Success();
}