From a477ef0bdb41b5caaf9bf624ac264e55cc60e28b Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 18 九月 2024 08:30:31 +0800
Subject: [PATCH] data tag 配置

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcua/dto/ChannelOPCUADeviceDTO.java |   53 +++++++++++++----------------------------------------
 1 files changed, 13 insertions(+), 40 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcua/dto/ChannelOPCUADeviceDTO.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcua/dto/ChannelOPCUADeviceDTO.java
index 2a29dbd..a962b56 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcua/dto/ChannelOPCUADeviceDTO.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcua/dto/ChannelOPCUADeviceDTO.java
@@ -1,6 +1,7 @@
 package com.iailab.module.data.channel.opcua.dto;
 
 import com.alibaba.fastjson.annotation.JSONField;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
 import java.io.Serializable;
@@ -10,67 +11,39 @@
  * @Description
  * @createTime 2023年04月23日 14:25:00
  */
+@Schema(description = "OPC UA设备")
 @Data
 public class ChannelOPCUADeviceDTO implements Serializable {
     private static final long serialVersionUID = 1L;
 
-    /**
-     * ServerName
-     */
-    @JSONField(name="ServerName")
+    @Schema(description = "ServerName", example = "ServerName")
     private String ServerName;
 
 
-    /**
-     * EndpointUrl
-     */
-    @JSONField(name="EndpointUrl")
+    @Schema(description = "EndpointUrl", example = "EndpointUrl")
     private String EndpointUrl;
 
-    /**
-     * SecurityPolicy
-     */
-    @JSONField(name="SecurityPolicy")
+    @Schema(description = "SecurityPolicy", example = "SecurityPolicy")
     private String SecurityPolicy;
 
-    /**
-     * SecurityMode
-     */
-    @JSONField(name="SecurityMode")
+    @Schema(description = "SecurityMode", example = "SecurityMode")
     private String SecurityMode;
 
-    /**
-     * 连接方式(0,匿名;1,用户名密码; 2,安全证书)
-     */
-    @JSONField(name="ConnectionType")
+    @Schema(description = "连接方式", example = "连接方式(0,匿名;1,用户名密码; 2,安全证书)")
     private String ConnectionType;
 
-    /**
-     * 用户名
-     */
-    @JSONField(name="UserName")
+    @Schema(description = "用户名", example = "用户名")
     private String UserName;
 
-    /**
-     * 密码
-     */
-    @JSONField(name="Password")
+    @Schema(description = "密码", example = "密码")
     private String Password;
 
-    /**
-     * 安全证书路径
-     */
-    @JSONField(name="CertificatePath")
+    @Schema(description = "安全证书路径", example = "安全证书路径")
     private String CertificatePath;
 
-    /**
-     * 设备不活动超时时间
-     */
-    @JSONField(name="ConnectInactivityTimeout")
+    @Schema(description = "设备不活动超时时间", example = "设备不活动超时时间")
     private Integer ConnectInactivityTimeout;
-    /**
-     * 重连超时
-     */
-    @JSONField(name="ConnectInactivityTimeout")
+
+    @Schema(description = "重连超时", example = "重连超时")
     private Integer ReconnectInterval;
 }

--
Gitblit v1.9.3