增加设备类型字段

This commit is contained in:
zhou-hao 2020-03-18 16:54:37 +08:00
parent 91c9028ae4
commit 00728837fc
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}