From c247f5bf64c98595cc7e4efc9e1ae7ff1df79c11 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 23 四月 2026 14:05:32 +0800
Subject: [PATCH] refactor(swagger): 迁移Swagger注解到OpenAPI 3.0

---
 src/main/java/com/ruoyi/safe/pojo/SafeHidden.java |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/src/main/java/com/ruoyi/safe/pojo/SafeHidden.java b/src/main/java/com/ruoyi/safe/pojo/SafeHidden.java
index 7c90c8e..1b10824 100644
--- a/src/main/java/com/ruoyi/safe/pojo/SafeHidden.java
+++ b/src/main/java/com/ruoyi/safe/pojo/SafeHidden.java
@@ -2,8 +2,7 @@
 
 import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
 import jakarta.validation.constraints.NotBlank;
 import lombok.Data;
 import org.springframework.format.annotation.DateTimeFormat;
@@ -22,7 +21,7 @@
  */
 @Data
 @TableName("safe_hidden")
-@ApiModel(value = "SafeHidden瀵硅薄", description = "瀹夊叏鐢熶骇--闅愭偅鎺掓煡涓婃姤")
+@Schema(name = "SafeHidden瀵硅薄", description = "瀹夊叏鐢熶骇--闅愭偅鎺掓煡涓婃姤")
 public class SafeHidden implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -30,63 +29,63 @@
     @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
-    @ApiModelProperty("闅愭偅缂栧彿")
+    @Schema(description = "闅愭偅缂栧彿")
     private String hiddenCode;
 
-    @ApiModelProperty("闅愭偅绫诲瀷")
+    @Schema(description = "闅愭偅绫诲瀷")
     private String type;
 
-    @ApiModelProperty("闅愭偅椋庨櫓绛夌骇")
+    @Schema(description = "闅愭偅椋庨櫓绛夌骇")
     private String riskLevel;
 
-    @ApiModelProperty("闅愭偅鍏蜂綋浣嶇疆")
+    @Schema(description = "闅愭偅鍏蜂綋浣嶇疆")
     private String location;
 
-    @ApiModelProperty("闅愭偅鎻忚堪")
+    @Schema(description = "闅愭偅鎻忚堪")
     private String hiddenDesc;
 
-    @ApiModelProperty("鏁存敼璐d换浜� ID")
+    @Schema(description = "鏁存敼璐d换浜� ID")
     @NotBlank(message = "鏁存敼璐d换浜轰笉鑳戒负绌�")
     private Integer rectifyUserId;
 
-    @ApiModelProperty("鏁存敼浜鸿仈绯荤數璇�")
+    @Schema(description = "鏁存敼浜鸿仈绯荤數璇�")
     private String rectifyUserMobile;
 
-    @ApiModelProperty("鏁存敼瀹屾垚鏈熼檺(鏃ユ湡)")
+    @Schema(description = "鏁存敼瀹屾垚鏈熼檺(鏃ユ湡)")
     @JsonFormat(pattern = "yyyy-MM-dd")
     @DateTimeFormat(pattern = "yyyy-MM-dd")
     @NotBlank(message = "鏁存敼瀹屾垚鏈熼檺涓嶈兘涓虹┖")
     private LocalDate rectifyTime;
 
-    @ApiModelProperty("鏁存敼鍏蜂綋鎺柦")
+    @Schema(description = "鏁存敼鍏蜂綋鎺柦")
     private String rectifyMeasures;
 
-    @ApiModelProperty("瀹為檯鏁存敼瀹屾垚鏃堕棿")
+    @Schema(description = "瀹為檯鏁存敼瀹屾垚鏃堕棿")
     @JsonFormat(pattern = "yyyy-MM-dd")
     @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDate rectifyActualTime;
 
-    @ApiModelProperty("楠屾敹浜� ID")
+    @Schema(description = "楠屾敹浜� ID")
     private Integer verifyUserId;
 
-    @ApiModelProperty("楠屾敹缁撴灉")
+    @Schema(description = "楠屾敹缁撴灉")
     private String verifyResult;
 
-    @ApiModelProperty("楠屾敹鎰忚")
+    @Schema(description = "楠屾敹鎰忚")
     private String verifyRemark;
 
-    @ApiModelProperty("楠屾敹鏃堕棿")
+    @Schema(description = "楠屾敹鏃堕棿")
     @JsonFormat(pattern = "yyyy-MM-dd")
     @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDate verifyTime;
 
-    @ApiModelProperty("涓婃姤鏃堕棿")
+    @Schema(description = "涓婃姤鏃堕棿")
     @TableField(fill = FieldFill.INSERT)
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime createTime;
 
-    @ApiModelProperty("涓婃姤浜篿d")
+    @Schema(description = "涓婃姤浜篿d")
     @TableField(fill = FieldFill.INSERT)
     private Integer createUser;
 

--
Gitblit v1.9.3