|
@@ -0,0 +1,52 @@
|
|
|
+package cn.iocoder.yudao.module.iot.controller.admin.thingmodel.model;
|
|
|
+
|
|
|
+import cn.iocoder.yudao.module.iot.controller.admin.thingmodel.model.dataType.ThingModelDataSpecs;
|
|
|
+import cn.iocoder.yudao.module.iot.enums.thingmodel.IotProductThingModelParamDirectionEnum;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * IOT 产品物模型中的服务、事件的输入输出参数
|
|
|
+ *
|
|
|
+ * @author HUIHUI
|
|
|
+ */
|
|
|
+@Data
|
|
|
+public class ThingModelInputOutputParam {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 参数标识符
|
|
|
+ */
|
|
|
+ private String identifier;
|
|
|
+ /**
|
|
|
+ * 参数名称
|
|
|
+ */
|
|
|
+ private String name;
|
|
|
+ /**
|
|
|
+ * 参数描述
|
|
|
+ */
|
|
|
+ private String description;
|
|
|
+ /**
|
|
|
+ * 用于区分输入或输出参数
|
|
|
+ *
|
|
|
+ * 关联枚举 {@link IotProductThingModelParamDirectionEnum}
|
|
|
+ */
|
|
|
+ private String direction;
|
|
|
+ /**
|
|
|
+ * 参数的序号。从 0 开始排序,且不能重复。
|
|
|
+ */
|
|
|
+ private Integer paraOrder;
|
|
|
+ /**
|
|
|
+ * 参数值的数据类型,与 dataSpecs 的 dataType 保持一致
|
|
|
+ */
|
|
|
+ private String dataType;
|
|
|
+ /**
|
|
|
+ * 参数值的数据类型(dataType)为非列表型(int、float、double、text、date、array)的数据规范存储在 dataSpecs 中
|
|
|
+ */
|
|
|
+ private ThingModelDataSpecs dataSpecs;
|
|
|
+ /**
|
|
|
+ * 参数值的数据类型(dataType)为列表型(enum、bool、struct)的数据规范存储在 dataSpecsList 中
|
|
|
+ */
|
|
|
+ private List<ThingModelDataSpecs> dataSpecsList;
|
|
|
+
|
|
|
+}
|