Java - 返回树形结构数据
1.TreeNodeDto
@Data
public class TreeNodeDto {
private Long id;
private Long organizationId;
private Long parentOrgId;
private Integer level;
private Integer sort;
private String path;
private String code;
private String name;
private String note;
private List children = new ArrayList()