ISysRoleUserService.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 角色成员管理服务
  5. /// </summary>
  6. public interface ISysRoleUserService
  7. {
  8. Task<List<int>> GetUserRoleIdList(int userId, bool checkRoleStatus = true);
  9. Task<List<SysRoleOutput>> GetUserRoleList(int userId, bool checkRoleStatus = true);
  10. /// <summary>
  11. /// 获取登录用户拥有角色列表
  12. /// </summary>
  13. /// <param name="userId"></param>
  14. /// <param name="checkRoleStatus"></param>
  15. /// <returns></returns>
  16. Task<List<SysRoleOutput>> GetLoginUserRoleList(int userId, bool checkRoleStatus = true);
  17. Task DeleteRoleUserByRoleId(int roleId);
  18. Task DeleteUserRoleListByUserId(int userId);
  19. Task AddRoleUser(SysRoleUserInput input);
  20. Task RemoveRoleUser(SysRoleUserInput input);
  21. Task<List<SysUserOutput>> GetInRoleUserList(int roleId);
  22. /// <summary>
  23. /// 分页查询角色用户列表
  24. /// </summary>
  25. /// <param name="input"></param>
  26. /// <returns></returns>
  27. Task<PageResult<SysUserOutput>> QueryInRoleUserPageList(SysRoleUserPageInput input);
  28. Task<List<SysUserOutput>> GetNotInRoleUserList(int roleId);
  29. Task<bool> IsSuperAdmin(int userId);
  30. /// <summary>
  31. /// 通过权限标识获取人员列表
  32. /// </summary>
  33. /// <param name="permission">权限标识</param>
  34. /// <returns></returns>
  35. Task<List<SysUserLiteOutput>> GetUserListByPermission(string permission);
  36. }