mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-07 02:00:51 +08:00
更新菜单控制器
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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user