using YBEE.EQM.Core; namespace YBEE.EQM.Application { /// /// 角色 /// [ApiDescriptionSettings(Name = "sys-role")] [Route("sys/role")] [AppAuthorize] public class SysRoleAppService : IDynamicApiController { private readonly ISysRoleService _roleService; public SysRoleAppService(ISysRoleService roleService) { _roleService = roleService; } /// /// 添加角色 /// /// /// public async Task Add(AddSysRoleInput input) { await _roleService.Add(input); } /// /// 删除角色 /// /// /// [UnitOfWork] public async Task Del(DeleteSysRoleInput input) { await _roleService.Del(input); } /// /// 更新角色 /// /// /// public async Task Update(UpdateSysRoleInput input) { await _roleService.Update(input); } /// /// 获取所有角色 /// /// [DisableOpLog] public async Task> GetAllList() { return await _roleService.GetAllList(); } } }