using YBEE.EQM.Core;
namespace YBEE.EQM.Application
{
///
/// 角色菜单
///
[ApiDescriptionSettings(Name = "sys-role-menu")]
[Route("sys/role/menu")]
[AppAuthorize]
public class SysRoleMenuAppService : IDynamicApiController
{
private readonly ISysRoleMenuService _roleMenuService;
public SysRoleMenuAppService(ISysRoleMenuService roleMenuService)
{
_roleMenuService = roleMenuService;
}
///
/// 获取角色的菜单Id集合
///
///
///
[DisableOpLog]
public async Task> GetRoleMenuIdList(int roleId)
{
return await _roleMenuService.GetRoleMenuIdList(new List { roleId });
}
///
/// 获取角色对象菜单列表
///
///
///
[DisableOpLog]
public async Task> GetRoleMenuList(int roleId)
{
return await _roleMenuService.GetRoleMenuList(roleId);
}
///
/// 授权角色菜单
///
///
///
public async Task GrantRoleMenu(GrantSysRoleMenuInput input)
{
await _roleMenuService.GrantRoleMenu(input);
}
}
}