IotDevice.java
8.4 KB
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 主机/网关对象 iot_device
*
* @author 钟来
* @date 2022-08-26
*/
@ApiModel("主机/网关")
public class IotDevice extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 激活时间 */
@ApiModelProperty("激活时间")
private Integer active_time;
/** 主键 */
@ApiModelProperty("主键")
private String client_id;
/** 是否补充权限,前面加${{roleid}}/${{username}}/${{clientid}}(0否,1是) */
@ApiModelProperty("是否补充权限,前面加${{roleid}}/${{username}}/${{clientid}}(0否,1是)")
private Integer completion_auth;
/** 创建者 */
@ApiModelProperty("创建者")
private String create_by;
/** 创建时间 */
@ApiModelProperty("创建时间")
private Integer create_time;
/** 删除标志(0代表存在 2代表删除) */
@ApiModelProperty("删除标志(0代表存在 2代表删除)")
private Integer del_flag;
/** 固件版本 */
@ApiModelProperty("固件版本")
private Float firmware_version;
/** 图片地址 */
@ApiModelProperty("图片地址")
private String img_url;
/** 是否启用设备影子(0=禁用,1=启用) */
@ApiModelProperty("是否启用设备影子(0=禁用,1=启用)")
private Integer is_shadow;
/** 设备纬度 */
@ApiModelProperty("设备纬度")
private Double latitude;
/** 定位方式(1=ip自动定位,2=设备定位,3=自定义) */
@ApiModelProperty("定位方式(1=ip自动定位,2=设备定位,3=自定义)")
private Integer location_way;
/** 设备经度 */
@ApiModelProperty("设备经度")
private Double longitude;
/** 设备名称 */
@ApiModelProperty("设备名称")
private String name;
/** 设备所在地址 */
@ApiModelProperty("设备所在地址")
private String network_address;
/** 设备入网IP */
@ApiModelProperty("设备入网IP")
private String network_ip;
/** 信号强度( 信号极好4格[-55— 0], 信号好3格[-70— -55], 信号一般2格[-85— -70], 信号差1格[-100— -85]) */
@ApiModelProperty("信号强度( 信号极好4格[-55— 0], 信号好3格[-70— -55], 信号一般2格[-85— -70], 信号差1格[-100— -85])")
private Integer rssi;
/** 设备状态(1-未激活,2-禁用,3-在线,4-离线) */
@ApiModelProperty("设备状态(1-未激活,2-禁用,3-在线,4-离线)")
private Integer status;
/** 设备摘要,格式[{"name":"device"},{"chip":"esp8266"}] */
@ApiModelProperty("设备摘要,格式[{\"name\":\"device\"},{\"chip\":\"esp8266\"}]")
private String summary;
/** 物模型值 */
@ApiModelProperty("物模型值")
private String things_model_value;
/** 更新者 */
@ApiModelProperty("更新者")
private String update_by;
/** 更新时间 */
@ApiModelProperty("更新时间")
private Integer update_time;
/** 用户id */
@ApiModelProperty("用户id")
private Integer user_id;
public void setActive_time(Integer active_time)
{
this.active_time = active_time;
}
public Integer getActive_time()
{
return active_time;
}
public void setClient_id(String client_id)
{
this.client_id = client_id;
}
public String getClient_id()
{
return client_id;
}
public void setCompletion_auth(Integer completion_auth)
{
this.completion_auth = completion_auth;
}
public Integer getCompletion_auth()
{
return completion_auth;
}
public void setCreate_by(String create_by)
{
this.create_by = create_by;
}
public String getCreate_by()
{
return create_by;
}
public void setCreate_time(Integer create_time)
{
this.create_time = create_time;
}
public Integer getCreate_time()
{
return create_time;
}
public void setDel_flag(Integer del_flag)
{
this.del_flag = del_flag;
}
public Integer getDel_flag()
{
return del_flag;
}
public void setFirmware_version(Float firmware_version)
{
this.firmware_version = firmware_version;
}
public Float getFirmware_version()
{
return firmware_version;
}
public void setImg_url(String img_url)
{
this.img_url = img_url;
}
public String getImg_url()
{
return img_url;
}
public void setIs_shadow(Integer is_shadow)
{
this.is_shadow = is_shadow;
}
public Integer getIs_shadow()
{
return is_shadow;
}
public void setLatitude(Double latitude)
{
this.latitude = latitude;
}
public Double getLatitude()
{
return latitude;
}
public void setLocation_way(Integer location_way)
{
this.location_way = location_way;
}
public Integer getLocation_way()
{
return location_way;
}
public void setLongitude(Double longitude)
{
this.longitude = longitude;
}
public Double getLongitude()
{
return longitude;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setNetwork_address(String network_address)
{
this.network_address = network_address;
}
public String getNetwork_address()
{
return network_address;
}
public void setNetwork_ip(String network_ip)
{
this.network_ip = network_ip;
}
public String getNetwork_ip()
{
return network_ip;
}
public void setRssi(Integer rssi)
{
this.rssi = rssi;
}
public Integer getRssi()
{
return rssi;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public void setSummary(String summary)
{
this.summary = summary;
}
public String getSummary()
{
return summary;
}
public void setThings_model_value(String things_model_value)
{
this.things_model_value = things_model_value;
}
public String getThings_model_value()
{
return things_model_value;
}
public void setUpdate_by(String update_by)
{
this.update_by = update_by;
}
public String getUpdate_by()
{
return update_by;
}
public void setUpdate_time(Integer update_time)
{
this.update_time = update_time;
}
public Integer getUpdate_time()
{
return update_time;
}
public void setUser_id(Integer user_id)
{
this.user_id = user_id;
}
public Integer getUser_id()
{
return user_id;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("active_time", getActive_time())
.append("client_id", getClient_id())
.append("completion_auth", getCompletion_auth())
.append("create_by", getCreate_by())
.append("create_time", getCreate_time())
.append("del_flag", getDel_flag())
.append("firmware_version", getFirmware_version())
.append("img_url", getImg_url())
.append("is_shadow", getIs_shadow())
.append("latitude", getLatitude())
.append("location_way", getLocation_way())
.append("longitude", getLongitude())
.append("name", getName())
.append("network_address", getNetwork_address())
.append("network_ip", getNetwork_ip())
.append("remark", getRemark())
.append("rssi", getRssi())
.append("status", getStatus())
.append("summary", getSummary())
.append("things_model_value", getThings_model_value())
.append("update_by", getUpdate_by())
.append("update_time", getUpdate_time())
.append("user_id", getUser_id())
.toString();
}
}