Interface ITreeService<T extends ITreeNode<T,I>,I>

Type Parameters:
T - 树形数据结构
I - ID类型

public interface ITreeService<T extends ITreeNode<T,I>,I>
树形数据管理
  • Method Details

    • listByParentId

      List<T> listByParentId(Collection<I> parentIds)
      查询列表
      Parameters:
      parentIds - 上级角色ID集合
      Returns:
      列表
    • topDownList

      default List<T> topDownList(Collection<I> initial, int depth)
      自上而下查询列表
      Parameters:
      initial - ID集合
      depth - 查询深度
      Returns:
      列表
    • topDownTree

      default List<T> topDownTree(Collection<I> initial, int depth)
      自上而下查询列表
      Parameters:
      initial - ID集合
      depth - 查询深度
      Returns:
      树形列表