更新控制器菜单接口

This commit is contained in:
lzw
2021-10-19 17:33:55 +08:00
parent f7cebdbce6
commit d215841b67
9 changed files with 41 additions and 15 deletions

View File

@@ -74,8 +74,11 @@ namespace Yi.Framework.ApiMicroservice.Controllers
await _roleService.SetMenusByRolesId(idsListDto.ids2, idsListDto.ids1);
return Result.Success();
}
[HttpPost]
public async Task<Result> GetMenuByRloeIds(List<int> roleIds)
{
var menuList =await _roleService.GetMenusByRoleId(roleIds);
return Result.Success().SetData(menuList);
}
}
}