ISysUserRoleService.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * 爱组搭,低代码组件化开发平台
  3. * ------------------------------------------
  4. * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
  5. */
  6. package com.aizuda.boot.modules.system.service;
  7. import com.aizuda.boot.modules.system.entity.SysUserRole;
  8. import com.aizuda.boot.modules.system.entity.param.AssignRolesParam;
  9. import com.aizuda.service.service.IBaseService;
  10. import java.util.List;
  11. /**
  12. * 系统用户角色 服务类
  13. *
  14. * @author 青苗
  15. * @since 2021-11-03
  16. */
  17. public interface ISysUserRoleService extends IBaseService<SysUserRole> {
  18. /**
  19. * 用户角色分配
  20. *
  21. * @param assignRolesParam 分配角色参数对象
  22. * @return
  23. */
  24. boolean assignRoles(AssignRolesParam assignRolesParam);
  25. /**
  26. * 根据用户ID查询关联角色ID列表
  27. *
  28. * @param userId 用户ID
  29. * @return
  30. */
  31. List<Long> listRoleIdsByUserId(Long userId);
  32. /**
  33. * 判断是否存在关联角色
  34. *
  35. * @param roleId 角色ID
  36. * @return
  37. */
  38. boolean existRelByRoleId(Long roleId);
  39. }