基本完善前端框架,发现后端bug

This commit is contained in:
橙子
2021-10-15 20:33:08 +08:00
parent 141987893e
commit cbfb19ade8
24 changed files with 352 additions and 318 deletions

View File

@@ -92,5 +92,15 @@ namespace Yi.Framework.ApiMicroservice.Controllers
var menuList= await _userService.GetMenusByUser(_user);
return Result.Success().SetData(menuList);
}
/// <summary>
/// 给一个菜单添加子节点(注意:添加,不是覆盖)
/// </summary>
/// <param name="childrenDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<Result> AddChildrenMenu(ChildrenDto<menu> childrenDto)
{
}
}
}

View File

@@ -92,6 +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();