mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-06 17:50:51 +08:00
修改控制器
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
[HttpGet]
|
||||
public async Task<Result> GetMenu()
|
||||
{
|
||||
return Result.Success().SetData(await _menuService.GetAllEntitiesTrueAsync());
|
||||
return Result.Success().SetData(await _menuService.GetMenuMouldByMenu( new menu()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -101,8 +101,8 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
[HttpPost]
|
||||
public async Task<Result> AddChildrenMenu(ChildrenDto<menu> childrenDto)
|
||||
{
|
||||
//var _menu = await _menuService.GetEntityById(childrenDto.parentId);
|
||||
var _children= await _menuService.AddChildrenMenu(childrenDto.parentId,childrenDto.data);
|
||||
|
||||
var _children= await _menuService.AddChildrenMenu(new menu() { id=childrenDto.parentId}, childrenDto.data);
|
||||
return Result.Success();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user