增加设备类型字段
This commit is contained in:
parent
91c9028ae4
commit
00728837fc
|
|
@ -2,6 +2,7 @@ package org.jetlinks.community.device.response;
|
|||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.jetlinks.community.device.enums.DeviceType;
|
||||
import org.jetlinks.core.device.DeviceOperator;
|
||||
import org.jetlinks.community.device.entity.DeviceInstanceEntity;
|
||||
import org.jetlinks.community.device.entity.DeviceProductEntity;
|
||||
|
|
@ -50,6 +51,9 @@ public class DeviceDetail {
|
|||
//设备状态
|
||||
private DeviceState state;
|
||||
|
||||
//设备类型
|
||||
private DeviceType deviceType;
|
||||
|
||||
//客户端地址 /id:port
|
||||
private String address;
|
||||
|
||||
|
|
@ -120,6 +124,7 @@ public class DeviceDetail {
|
|||
|
||||
setProductId(productEntity.getId());
|
||||
setProductName(productEntity.getName());
|
||||
setDeviceType(productEntity.getDeviceType());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue