Class RoleService
java.lang.Object
io.github.xezzon.zeroweb.role.internal.RoleService
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.tree.ITreeService<Role,,String> IRoleService4Auth
@Service
public class RoleService
extends Object
implements io.github.xezzon.zeroweb.core.tree.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, waitMethods inherited from interface io.github.xezzon.zeroweb.core.tree.ITreeService
topDownList, topDownTree
-
Constructor Details
-
RoleService
-
-
Method Details
-
listByParentId
-
findByIdIn
Description copied from interface:IRoleService4Auth根据ID批量查询角色- Specified by:
findByIdInin interfaceIRoleService4Auth- Parameters:
roleIds- 角色ID- Returns:
- 角色列表
-
findParent
Description copied from interface:IRoleService4Auth查询上级角色- Specified by:
findParentin interfaceIRoleService4Auth- Parameters:
childId- 角色Id- Returns:
- 上级角色
-
topDownList
Description copied from interface:IRoleService4Auth查询角色子级列表- Specified by:
topDownListin interfaceIRoleService4Auth- Parameters:
initial- 角色ID- Returns:
- 该角色的所有子级角色(包含递归子级,但不包括自身)
-