SysRoleGroupAppService.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application
  3. {
  4. /// <summary>
  5. /// 角色组
  6. /// </summary>
  7. [ApiDescriptionSettings(Name = "sys-role-group")]
  8. [Route("sys/role/group")]
  9. [AppAuthorize]
  10. public class SysRoleGroupAppService : IDynamicApiController
  11. {
  12. private readonly ISysRoleGroupService _roleGroupService;
  13. public SysRoleGroupAppService(ISysRoleGroupService roleGroupService)
  14. {
  15. _roleGroupService = roleGroupService;
  16. }
  17. /// <summary>
  18. /// 添加角色组
  19. /// </summary>
  20. /// <param name="input"></param>
  21. /// <returns></returns>
  22. public async Task<int> Add(AddSysRoleGroupInput input)
  23. {
  24. return await _roleGroupService.Add(input);
  25. }
  26. /// <summary>
  27. /// 修改角色组
  28. /// </summary>
  29. /// <param name="input"></param>
  30. /// <returns></returns>
  31. public async Task Update(UpdateSysRoleGroupInput input)
  32. {
  33. await _roleGroupService.Update(input);
  34. }
  35. /// <summary>
  36. /// 删除角色组
  37. /// </summary>
  38. /// <param name="input"></param>
  39. /// <returns></returns>
  40. public async Task Del(DeleteSysRoleGroupInput input)
  41. {
  42. await _roleGroupService.Del(input);
  43. }
  44. /// <summary>
  45. /// 获取所有角色组
  46. /// </summary>
  47. /// <returns></returns>
  48. [DisableOpLog]
  49. public async Task<List<SysRoleGroupOutput>> GetAllList()
  50. {
  51. return await _roleGroupService.GetAllList();
  52. }
  53. }
  54. }