Class RoleService
java.lang.Object
io.github.xezzon.zeroweb.role.internal.RoleService
- All Implemented Interfaces:
ITreeService<Role,
,String> IRoleService4Auth
@Service
public class RoleService
extends Object
implements ITreeService<Role,String>, IRoleService4Auth
- Author:
- xezzon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByIdIn
(Collection<String> roleIds) 根据ID批量查询角色findParent
(String childId) 查询上级角色listByParentId
(Collection<String> parentIds) 查询列表topDownList
(Collection<String> initial) 查询角色子级列表Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.xezzon.zeroweb.core.tree.ITreeService
topDownList, topDownTree
-
Constructor Details
-
RoleService
-
-
Method Details
-
listByParentId
Description copied from interface:ITreeService
查询列表- Specified by:
listByParentId
in interfaceITreeService<Role,
String> - Parameters:
parentIds
- 上级角色ID集合- Returns:
- 列表
-
findByIdIn
Description copied from interface:IRoleService4Auth
根据ID批量查询角色- Specified by:
findByIdIn
in interfaceIRoleService4Auth
- Parameters:
roleIds
- 角色ID- Returns:
- 角色列表
-
findParent
Description copied from interface:IRoleService4Auth
查询上级角色- Specified by:
findParent
in interfaceIRoleService4Auth
- Parameters:
childId
- 角色Id- Returns:
- 上级角色
-
topDownList
Description copied from interface:IRoleService4Auth
查询角色子级列表- Specified by:
topDownList
in interfaceIRoleService4Auth
- Parameters:
initial
- 角色ID- Returns:
- 该角色的所有子级角色(包含递归子级,但不包括自身)
-