Interface IRoleService4Auth
- All Known Implementing Classes:
RoleService
public interface IRoleService4Auth
角色服务接口 - 认证模块专用
该接口为认证模块提供角色相关的查询服务,包含角色继承关系查询等功能。 接口方法主要用于权限验证和角色层级关系处理。
- Author:
- xezzon
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdIn(Collection<String> roleIds) 根据ID批量查询角色findParent(String roleId) 查询上级角色topDownList(Collection<String> initial) 查询角色子级列表
-
Method Details
-
findByIdIn
根据ID批量查询角色- Parameters:
roleIds- 角色ID集合,不能为空- Returns:
- 角色列表,按照传入的ID顺序返回,如果角色不存在则跳过
-
findParent
-
topDownList
查询角色子级列表- Parameters:
initial- 初始角色ID集合,从这些角色开始向下查找- Returns:
- 该角色的所有子级角色(包含递归子级,但不包括自身),按层级排序
-