Interface ITreeService<T extends ITreeNode<T,I>,I>
- Type Parameters:
T
- 树形数据结构I
- ID类型
public interface ITreeService<T extends ITreeNode<T,I>,I>
树形数据管理
-
Method Summary
Modifier and TypeMethodDescriptionlistByParentId
(Collection<I> parentIds) 查询列表topDownList
(Collection<I> initial, int depth) 自上而下查询列表topDownTree
(Collection<I> initial, int depth) 自上而下查询列表
-
Method Details
-
listByParentId
查询列表- Parameters:
parentIds
- 上级角色ID集合- Returns:
- 列表
-
topDownList
自上而下查询列表- Parameters:
initial
- ID集合depth
- 查询深度- Returns:
- 列表
-
topDownTree
自上而下查询列表- Parameters:
initial
- ID集合depth
- 查询深度- Returns:
- 树形列表
-