ZQN
2024-06-24 b4b2b63345961884c8a9dd95ca1f32c0ea1123e5
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;
    }
 
}