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/aftersalesservice/controller/AfterSalesServiceFileController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java
index e538fa1..9032852 100644
--- a/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java
+++ b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java
@@ -7,8 +7,8 @@
 import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
 import com.ruoyi.framework.web.controller.BaseController;
 import com.ruoyi.framework.web.domain.AjaxResult;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Operation;
 import lombok.AllArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -24,7 +24,7 @@
  * @since 2026/03/02 11:20
  */
 @RestController
-@Api(tags = "鍞悗鏈嶅姟闄勪欢琛�")
+@Tag(name = "鍞悗鏈嶅姟闄勪欢琛�")
 @RequestMapping("/afterSalesService/file")
 @AllArgsConstructor
 public class AfterSalesServiceFileController extends BaseController {
@@ -32,7 +32,7 @@
     private AfterSalesServiceFileService afterSalesServiceFileService;
 
     @PostMapping("/upload")
-    @ApiOperation("鍞悗鏈嶅姟-鏂囦欢涓婁紶")
+    @Operation(summary = "鍞悗鏈嶅姟-鏂囦欢涓婁紶")
     @Log(title = "鍞悗鏈嶅姟-鏂囦欢涓婁紶", businessType = BusinessType.INSERT)
     public AjaxResult fileUpload(@RequestParam("file") MultipartFile file,
                                  @RequestParam("id") Long afterSalesServiceId) {
@@ -41,14 +41,14 @@
     }
 
     @GetMapping("/listPage")
-    @ApiOperation("鍞悗澶勭悊-鍞悗闄勪欢鍒楄〃")
+    @Operation(summary = "鍞悗澶勭悊-鍞悗闄勪欢鍒楄〃")
     @Log(title = "鍞悗澶勭悊-鍞悗闄勪欢鍒楄〃", businessType = BusinessType.OTHER)
     public AjaxResult fileList(Page<AfterSalesServiceFile> page, Long afterSalesServiceId) {
         return AjaxResult.success(afterSalesServiceFileService.fileList(page, afterSalesServiceId));
     }
 
     @DeleteMapping("/del/{fileId}")
-    @ApiOperation("鍞悗澶勭悊-鍒犻櫎闄勪欢")
+    @Operation(summary = "鍞悗澶勭悊-鍒犻櫎闄勪欢")
     @Log(title = "鍞悗澶勭悊-鍒犻櫎闄勪欢", businessType = BusinessType.DELETE)
     public AjaxResult delFile(@PathVariable Long fileId) {
         afterSalesServiceFileService.delFile(fileId);

--
Gitblit v1.9.3