|
|
@@ -1,5 +1,7 @@
|
|
|
package com.zhongshu.iot.server.core.domain.iot;
|
|
|
|
|
|
+import com.github.microservice.models.type.DeviceSpecType;
|
|
|
+import com.github.microservice.models.type.DeviceType;
|
|
|
import com.zhongshu.iot.client.type.DataState;
|
|
|
import com.zhongshu.iot.client.type.IotDataType;
|
|
|
import com.zhongshu.iot.server.core.domain.base.SuperEntity;
|
|
|
@@ -30,6 +32,15 @@ public class IotTemplate extends SuperEntity {
|
|
|
@Schema(description = "所属物模型id")
|
|
|
private String iotThingId;
|
|
|
|
|
|
+ @Schema(description = "关联code,产品code")
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ @Schema(description = "适用设备类型")
|
|
|
+ private DeviceType deviceType;
|
|
|
+
|
|
|
+ @Schema(description = "适用设备型号")
|
|
|
+ private DeviceSpecType specType;
|
|
|
+
|
|
|
//--------------------------------关联设备时特有的属性 start------------------
|
|
|
@Schema(description = "区分是模版还是设备关联的物模型")
|
|
|
private IotDataType iotDataType;
|