38 lines
885 B
Java
38 lines
885 B
Java
package com.tky.web.dto;
|
|
|
|
import java.util.List;
|
|
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
@Data
|
|
@NoArgsConstructor
|
|
public class TreeNode {
|
|
public static String TREENODESTATE_OPEN = "open";
|
|
public static String TREENODESTATE_CLOSED = "closed";
|
|
|
|
private Long id;
|
|
private Integer type;
|
|
private String typestr;
|
|
private String text;
|
|
private String name;
|
|
private String state = TREENODESTATE_OPEN;
|
|
private String iconCls;
|
|
private String iconType; // 图标类型
|
|
private Object source;
|
|
private List<TreeNode> children;
|
|
private Double lon;
|
|
private Double lat;
|
|
private Double height;
|
|
public TreeNode(Long id, Integer type, String text, String state) {
|
|
super();
|
|
this.id = id;
|
|
this.type = type;
|
|
this.text = text;
|
|
this.name = text;
|
|
this.state = state;
|
|
}
|
|
|
|
|
|
}
|