TRX vor 1 Jahr
Ursprung
Commit
37ce923a91
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      src/main/java/com/zswl/dataservice/model/iot/IotMainParam.java

+ 4 - 4
src/main/java/com/zswl/dataservice/model/iot/IotMainParam.java

@@ -40,7 +40,7 @@ public class IotMainParam extends SuperParam {
     @Schema(description = "数据类型,number、Boolean、String 等")
     private DataType dataType;
 
-    @Schema(description = "元素类型,只有 dataType=Array才使用")
+    @Schema(description = "元素类型,只有 dataType=Array才使用,当elementType=String、Number, 元素值的限制 设置到 本级,childs 应该为空")
     private DataType elementType;
 
     @Schema(description = "单位名称,如:千克、流明、立方米等...")
@@ -55,13 +55,13 @@ public class IotMainParam extends SuperParam {
     @Schema(description = "结束值")
     private BigDecimal end;
 
-    @Schema(description = "最大的长度,如:类型为字符串时使用")
+    @Schema(description = "当 dataType=String 或 dataType=Array && elementType=String 可以设置该值 最大的长度,如:类型为字符串时使用")
     private Integer maxLength;
 
-    @Schema(description = "属性,参数列表,输入参数")
+    @Schema(description = "属性,参数列表,输入参数, 当dataType=Object 或 当dataType=Array && elementType=Object 可以设置该值")
     private List<IotAttribute> childs;
 
-    @Schema(description = "值的对应,如:0-开")
+    @Schema(description = "值的对应,如:0-开,")
     private List<IotDict> dicts;
 
     @Schema(description = "业务处理地址")