wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package io.dataease.api.dataset.dto;
 
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.io.Serializable;
 
@Schema(description = "数据集结构")
@Data
public class DatasetNodeDTO implements Serializable {
 
    /**
     * ID
     */
    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
 
    /**
     * 名称
     */
    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;
 
    /**
     * 父级ID
     */
    @Schema(description = "父级目录ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;
 
    /**
     * 当前分组处于第几级
     */
    @Schema(description = "层级")
    private Integer level;
 
    /**
     * node类型:folder or dataset
     */
    @Schema(description = "叶子节点类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private String nodeType;
 
    /**
     * sql,union
     */
    @Schema(description = "数据集类型")
    private String type;
 
    /**
     * 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表)
     */
    @Schema(description = "连接模式", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer mode;
 
    /**
     * 关联关系树
     */
    @Schema(description = "关联tree", requiredMode = Schema.RequiredMode.REQUIRED)
    private String info;
 
    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createBy;
 
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Long createTime;
 
    private String qrtzInstance;
 
    /**
     * 同步状态
     */
    private String syncStatus;
 
    /**
     * 创建人ID
     */
    private String updateBy;
 
    /**
     * 最后同步时间
     */
    private Long lastUpdateTime;
 
    /**
     * 关联sql,由tree
     */
    private String unionSql;
 
}