ZQN
2024-06-26 2e9f408c8437c11204b438ebbb526586283a284e
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;
    }
 
}