ZQN
2024-06-17 b1ff19545212508d3f65741ab889f0b6df82a511
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.project.common.core.interfaces;
 
import java.io.Serializable;
import java.util.List;
 
/**
 * 基础树节点
 * @param <T>
 */
public interface ITreeNode<T> extends Serializable
{
    Long getId();
 
    Long getParentId();
 
    List<T> getChildren();
 
    default Boolean getHasChildren() {
        return true;
    }
 
}