mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-31 06:06:36 +08:00
更新控制器
This commit is contained in:
@@ -70,7 +70,12 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<Result> SetMenuByRole(IdsListDto<int> idsListDto)
|
||||
{
|
||||
{
|
||||
foreach(var id in idsListDto.ids1)
|
||||
{
|
||||
await _roleService.SetMenusByRolesId(idsListDto.ids2, id);
|
||||
}
|
||||
return Result.Success();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user