更新角色控制器

This commit is contained in:
lzw
2021-10-19 18:30:56 +08:00
parent 71a6878122
commit ad9d1d9452
4 changed files with 21 additions and 17 deletions

View File

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