From 6c2ff1c7c8e0aba3af92110b76687b78f8278e86 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 03 一月 2025 09:57:37 +0800 Subject: [PATCH] 动态数据长度 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/vo/HttpTagRespVO.java | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/vo/HttpTagRespVO.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/vo/HttpTagRespVO.java index f196604..1891995 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/vo/HttpTagRespVO.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/vo/HttpTagRespVO.java @@ -2,6 +2,7 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @@ -21,22 +22,39 @@ @ExcelProperty("ID") private String id; - @Schema(description = "api编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") - @ExcelProperty("api编码") - private String httpApiCode; + @Schema(description = "接口ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("接口ID") + private String apiId; - @Schema(description = "测点类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") - @ExcelProperty("测点类型") - private String tagType; - - @Schema(description = "测点编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") - @ExcelProperty("测点编码") - private String tagCode; - - @Schema(description = "测点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") - @ExcelProperty("测点名称") + @Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("标签名称") private String tagName; + @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("数据类型") + private String dataType; + + @Schema(description = "标签描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("标签描述") + private String tagDesc; + + @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("是否启用") + private Integer enabled; + + @Schema(description = "数据值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("数据值") + private Object dataValue; + + @Schema(description = "数据质量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("数据质量") + private String dataQuality; + + @Schema(description = "数据时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") + @ExcelProperty("数据时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date dataTime; + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @ExcelProperty("创建时间") private Date createTime; -- Gitblit v1.9.3