|
|
@@ -25,19 +25,19 @@ public class IotMainParam extends SuperParam {
|
|
|
@Schema(description = "模版或无模型ID")
|
|
|
private String iotTemplateId;
|
|
|
|
|
|
- @Schema(description = "功能名称")
|
|
|
+ @Schema(description = "功能名称", required = true)
|
|
|
private String name;
|
|
|
|
|
|
- @Schema(description = "标识符")
|
|
|
+ @Schema(description = "标识符", required = true)
|
|
|
private String identifier;
|
|
|
|
|
|
- @Schema(description = "功能类型,属性 事件 服务")
|
|
|
+ @Schema(description = "功能类型,属性 事件 服务", required = true)
|
|
|
FunctionType functionType;
|
|
|
|
|
|
@Schema(description = "物模型Topic")
|
|
|
private String iotTopic;
|
|
|
|
|
|
- @Schema(description = "数据类型,number、Boolean、String 等")
|
|
|
+ @Schema(description = "数据类型,number、Boolean、String 等", required = true)
|
|
|
private DataType dataType;
|
|
|
|
|
|
@Schema(description = "元素类型,只有 dataType=Array才使用,当elementType=String、Number, 元素值的限制 设置到 本级,childs 应该为空")
|
|
|
@@ -47,7 +47,7 @@ public class IotMainParam extends SuperParam {
|
|
|
private String unitName;
|
|
|
|
|
|
@Schema(description = "步长")
|
|
|
- private Integer stepNumber;
|
|
|
+ private BigDecimal stepNumber;
|
|
|
|
|
|
@Schema(description = "开始值")
|
|
|
private BigDecimal start;
|