From 6b7aa9452a163412d2654c2e743fb664685a118b Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期一, 17 二月 2025 11:41:11 +0800
Subject: [PATCH] 全部请求参数调整

---
 basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java b/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
index ca3a5b9..eec4f92 100644
--- a/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
+++ b/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
@@ -7,10 +7,7 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 @RestController
 @AllArgsConstructor
@@ -21,7 +18,7 @@
     private ProductPartService productPartService;
 
     @ApiOperation(value = "鏍规嵁浜у搧id鏌ヨ闆朵欢")
-    @PostMapping("/selectByProductId")
+    @GetMapping("/selectByProductId")
     public Result selectByProductId(Page page,ProductPart productPart){
         return Result.success(productPartService.selectByProductId(page,productPart));
     }
@@ -41,7 +38,7 @@
     }
 
     @ApiOperation(value = "鍒犻櫎浜у搧闆朵欢")
-    @PostMapping("/deleteProductPart")
+    @DeleteMapping("/deleteProductPart")
     public Result deleteProductPart(Integer id) {
         productPartService.removeById(id);
         return Result.success();

--
Gitblit v1.9.3