using YBEE.EQM.Core;
namespace YBEE.EQM.Application
{
///
/// 角色组
///
[ApiDescriptionSettings(Name = "sys-role-group")]
[Route("sys/role/group")]
[AppAuthorize]
public class SysRoleGroupAppService : IDynamicApiController
{
private readonly ISysRoleGroupService _roleGroupService;
public SysRoleGroupAppService(ISysRoleGroupService roleGroupService)
{
_roleGroupService = roleGroupService;
}
///
/// 添加角色组
///
///
///
public async Task Add(AddSysRoleGroupInput input)
{
return await _roleGroupService.Add(input);
}
///
/// 修改角色组
///
///
///
public async Task Update(UpdateSysRoleGroupInput input)
{
await _roleGroupService.Update(input);
}
///
/// 删除角色组
///
///
///
public async Task Del(DeleteSysRoleGroupInput input)
{
await _roleGroupService.Del(input);
}
///
/// 获取所有角色组
///
///
[DisableOpLog]
public async Task> GetAllList()
{
return await _roleGroupService.GetAllList();
}
}
}