ecology_maven/com/api/aiyh_pcn/fadada/entity/TreeEntity.java

30 lines
445 B
Java

package com.api.aiyh_pcn.fadada.entity;
import java.util.List;
/**
* @author EBU7-dev1-ayh
* @create 2021/10/12 0012 11:16
* 树形结构
*/
public class TreeEntity<T> {
private List<T> children;
public List<T> getChildren() {
return children;
}
public void setChildren(List<T> children) {
this.children = children;
}
@Override
public String toString() {
return "TreeEntity{" +
"children=" + children +
'}';
}
}