1、创建树结构模型
package com.spring.dept.utils;
import java.util.List;
/**
* @author ------
* @create 2021-06-26 15:41
* @desc 1
*/
public class DeptTree {
private String id;
private String name;
private List children;
public DeptTree() {
}
public DeptTree(String id,String nane, List children) {
this.id = id;
this.name = nane;
this.children = children;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name