基本完善前端框架,发现后端bug
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,6 +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