|
@@ -2,10 +2,7 @@ package com.zswl.dataservice.model.iot;
|
|
|
|
|
|
|
|
import com.zswl.dataservice.domain.iot.IotTemplate;
|
|
import com.zswl.dataservice.domain.iot.IotTemplate;
|
|
|
import com.zswl.dataservice.model.baseParam.SuperModel;
|
|
import com.zswl.dataservice.model.baseParam.SuperModel;
|
|
|
-import com.zswl.dataservice.type.DataType;
|
|
|
|
|
-import com.zswl.dataservice.type.FunctionType;
|
|
|
|
|
-import com.zswl.dataservice.type.MainUnitType;
|
|
|
|
|
-import com.zswl.dataservice.type.OperationType;
|
|
|
|
|
|
|
+import com.zswl.dataservice.type.*;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
@@ -68,6 +65,18 @@ public class IotMainModel extends SuperModel {
|
|
|
return "";
|
|
return "";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "事件类型")
|
|
|
|
|
+ private EventType eventType;
|
|
|
|
|
+
|
|
|
|
|
+ private String eventTypeStr;
|
|
|
|
|
+
|
|
|
|
|
+ public String getEventTypeStr() {
|
|
|
|
|
+ if (eventType != null) {
|
|
|
|
|
+ return eventType.getRemark();
|
|
|
|
|
+ }
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//---------------------------------属性类型的 字段 start ------------------
|
|
//---------------------------------属性类型的 字段 start ------------------
|
|
|
@Schema(description = "数据类型,number、Boolean、String 等")
|
|
@Schema(description = "数据类型,number、Boolean、String 等")
|
|
|
private DataType dataType;
|
|
private DataType dataType;
|
|
@@ -105,6 +114,9 @@ public class IotMainModel extends SuperModel {
|
|
|
@Schema(description = "值的对应,如:0-开")
|
|
@Schema(description = "值的对应,如:0-开")
|
|
|
private List<IotDict> dicts;
|
|
private List<IotDict> dicts;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "属性,输出参数列表,输入参数")
|
|
|
|
|
+ private List<IotAttribute> outChilds;
|
|
|
|
|
+
|
|
|
//--------------------------------关联设备时特有的属性 start------------------
|
|
//--------------------------------关联设备时特有的属性 start------------------
|
|
|
|
|
|
|
|
@Schema(description = "业务处理地址")
|
|
@Schema(description = "业务处理地址")
|