leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
package com.fastbee.iot.model.ThingsModels;
 
import org.springframework.data.redis.connection.DataType;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * 物模型
 *
 * @author kerwincui
 * @date 2021-12-16
 */
public class ThingsModelValueItemDto
{
    /** 物模型唯一标识符 */
    private String id;
 
    /** 物模型名称 */
    private String name;
 
    /** 物模型值 */
    private String value;
 
    /** 是否首页显示(0-否,1-是) */
    private Integer isChart;
 
    /** 是否实时监测(0-否,1-是) */
    private Integer isMonitor;
 
    private DataType dataType;
 
    public Integer getIsChart() {
        return isChart;
    }
 
    public void setIsChart(Integer isChart) {
        this.isChart = isChart;
    }
 
    public Integer getIsMonitor() {
        return isMonitor;
    }
 
    public void setIsMonitor(Integer isMonitor) {
        this.isMonitor = isMonitor;
    }
 
    public DataType getDataType() {
        return dataType;
    }
 
    public void setDataType(DataType dataType) {
        this.dataType = dataType;
    }
 
    public String getValue() {
        return value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public static class DataType{
        private String type;
        private String falseText;
        private String trueText;
        private Integer maxLength;
        private String arrayType;
        private String unit;
        private BigDecimal min;
        private BigDecimal max;
        private BigDecimal step;
        private List<EnumItem> enumList;
 
        public String getType() {
            return type;
        }
 
        public void setType(String type) {
            this.type = type;
        }
 
        public String getFalseText() {
            return falseText;
        }
 
        public void setFalseText(String falseText) {
            this.falseText = falseText;
        }
 
        public String getTrueText() {
            return trueText;
        }
 
        public void setTrueText(String trueText) {
            this.trueText = trueText;
        }
 
        public Integer getMaxLength() {
            return maxLength;
        }
 
        public void setMaxLength(Integer maxLength) {
            this.maxLength = maxLength;
        }
 
        public String getArrayType() {
            return arrayType;
        }
 
        public void setArrayType(String arrayType) {
            this.arrayType = arrayType;
        }
 
        public String getUnit() {
            return unit;
        }
 
        public void setUnit(String unit) {
            this.unit = unit;
        }
 
        public BigDecimal getMin() {
            return min;
        }
 
        public void setMin(BigDecimal min) {
            this.min = min;
        }
 
        public BigDecimal getMax() {
            return max;
        }
 
        public void setMax(BigDecimal max) {
            this.max = max;
        }
 
        public BigDecimal getStep() {
            return step;
        }
 
        public void setStep(BigDecimal step) {
            this.step = step;
        }
 
        public List<EnumItem> getEnumList() {
            return enumList;
        }
 
        public void setEnumList(List<EnumItem> enumList) {
            this.enumList = enumList;
        }
    }
 
    public static class EnumItem
    {
        private String text;
        private String value;
 
        public String getText() {
            return text;
        }
 
        public void setText(String text) {
            this.text = text;
        }
 
        public String getValue() {
            return value;
        }
 
        public void setValue(String value) {
            this.value = value;
        }
    }
 
}