IotDevice.java
9.0 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
package com.ruoyi.system.domain;
import com.ruoyi.system.domain.tool.PublicSQLConfig;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* 主机/网关对象 iot_device
*
* @author 钟来
* @date 2022-08-26
*/
@ApiModel("主机/网关")
public class IotDevice implements Serializable
{
@PublicSQLConfig(isSelect=false)
private static final long serialVersionUID = 1L;
/** 激活时间 */
@ApiModelProperty("激活时间")
private Integer active_time;
/** 主键 */
@PublicSQLConfig(isPrimarykey = true)
@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 String 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-离线,5-锁定)")
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;
@ApiModelProperty("产品id")
private Integer product_id;
@ApiModelProperty("mqtt用户名/设备类型")
private String mqtt_username;
@ApiModelProperty("负载类型(String,Json,Bite16,Bite32)")
private String payload_type;
@ApiModelProperty("物模型配置")
private String things_model_config; //payload 协议模型
@ApiModelProperty("监听服务器的ip")
private String listen_service_ip;
@ApiModelProperty("描述")
private String remark;
@ApiModelProperty("设备生命周期")
private Long device_life;
@ApiModelProperty("数据更新时间")
private Integer data_update_time;
public Integer getData_update_time() {
return data_update_time;
}
public void setData_update_time(Integer data_update_time) {
this.data_update_time = data_update_time;
}
public Long getDevice_life() {
return device_life;
}
public void setDevice_life(Long device_life) {
this.device_life = device_life;
}
public String getListen_service_ip() {
return listen_service_ip;
}
public void setListen_service_ip(String listen_service_ip) {
this.listen_service_ip = listen_service_ip;
}
public String getThings_model_config() {
return things_model_config;
}
public void setThings_model_config(String things_model_config) {
this.things_model_config = things_model_config;
}
public String getPayload_type() {
return payload_type;
}
public void setPayload_type(String payload_type) {
this.payload_type = payload_type;
}
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(String firmware_version)
{
this.firmware_version = firmware_version;
}
public String 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 Integer getProduct_id() {
return product_id;
}
public void setProduct_id(Integer product_id) {
this.product_id = product_id;
}
public String getMqtt_username() {
return mqtt_username;
}
public void setMqtt_username(String mqtt_username) {
this.mqtt_username = mqtt_username;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}