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/AfterSalesNearExpiryController.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesNearExpiryController.java b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesNearExpiryController.java
index 69b21c7..ccc13b9 100644
--- a/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesNearExpiryController.java
+++ b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesNearExpiryController.java
@@ -8,9 +8,9 @@
 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 org.springframework.beans.factory.annotation.Autowired;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Operation;
+import lombok.AllArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 
 /**
@@ -23,18 +23,18 @@
  * @since 2026/03/02 14:40
  */
 @RestController
-@Api(tags = "涓存湡鍞悗绠$悊")
+@Tag(name = "涓存湡鍞悗绠$悊")
 @RequestMapping("/afterSalesNearExpiryService")
+@AllArgsConstructor
 public class AfterSalesNearExpiryController extends BaseController {
 
-    @Autowired
     private AfterSalesNearExpiryService afterSalesNearExpiryService;
 
     /**
      * 鏂板涓存湡鍞悗
      */
     @PostMapping("/add")
-    @ApiOperation("鏂板涓存湡鍞悗")
+    @Operation(summary = "鏂板涓存湡鍞悗")
     @Log(title = "鏂板涓存湡鍞悗", businessType = BusinessType.INSERT)
     public AjaxResult add(@RequestBody AfterSalesNearExpiry entity) {
         afterSalesNearExpiryService.add(entity);
@@ -45,7 +45,7 @@
      * 鏇存柊涓存湡鍞悗
      */
     @PostMapping("/update")
-    @ApiOperation("鏇存柊涓存湡鍞悗")
+    @Operation(summary = "鏇存柊涓存湡鍞悗")
     @Log(title = "鏇存柊涓存湡鍞悗", businessType = BusinessType.UPDATE)
     public AjaxResult update(@RequestBody AfterSalesNearExpiry entity) {
         afterSalesNearExpiryService.update(entity);
@@ -56,7 +56,7 @@
      * 鍒犻櫎涓存湡鍞悗
      */
     @DeleteMapping("/delete")
-    @ApiOperation("鍒犻櫎涓存湡鍞悗")
+    @Operation(summary = "鍒犻櫎涓存湡鍞悗")
     @Log(title = "鍒犻櫎涓存湡鍞悗", businessType = BusinessType.DELETE)
     public AjaxResult delete(Long[] ids) {
         afterSalesNearExpiryService.delete(ids);
@@ -67,7 +67,7 @@
      * 鍒嗛〉鏌ヨ涓存湡鍞悗
      */
     @GetMapping("/listPage")
-    @ApiOperation("鍒嗛〉鏌ヨ涓存湡鍞悗")
+    @Operation(summary = "鍒嗛〉鏌ヨ涓存湡鍞悗")
     @Log(title = "鍒嗛〉鏌ヨ涓存湡鍞悗", businessType = BusinessType.OTHER)
     public AjaxResult listPage(Page<AfterSalesNearExpiry> page, AfterSalesNearExpiry entity) {
         IPage<AfterSalesNearExpiry> listPage = afterSalesNearExpiryService.listPage(page, entity);

--
Gitblit v1.9.3