From ccc7f95f639fbfe3b496d4f61d7bb83fb02a226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=AC=A3=E6=82=A6?= <2289014031@qq.com> Date: Mon, 2 Sep 2024 14:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9Dapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../muyu/cloud/market/controller/OrdersController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud-market-server/src/main/java/com/muyu/cloud/market/controller/OrdersController.java b/cloud-market-server/src/main/java/com/muyu/cloud/market/controller/OrdersController.java index e600cff..7623303 100644 --- a/cloud-market-server/src/main/java/com/muyu/cloud/market/controller/OrdersController.java +++ b/cloud-market-server/src/main/java/com/muyu/cloud/market/controller/OrdersController.java @@ -73,7 +73,7 @@ public class OrdersController { * @param ordersId * @return */ - @PostMapping("/updateByeExist/{ordersId}") + @GetMapping("/updateByeExist/{ordersId}") @Operation(summary = "逻辑删除订单", description = "根据orderid修改exist字段 1->0/(类似回收站)") Result updateByeExist (@Validated @PathVariable("ordersId") Integer ordersId){ return orderShowService.updateByeExist(ordersId); @@ -85,7 +85,7 @@ public class OrdersController { * @param ordersId * @return */ - @PostMapping("/updateByExist/{ordersId}") + @GetMapping("/updateByExist/{ordersId}") @Operation(summary = "逻辑复原订单", description = "根据orderid修改exist字段 0->1") Result updateByExist(@Validated @PathVariable("ordersId") Integer ordersId){ return orderShowService.updateByExist(ordersId); @@ -95,7 +95,7 @@ public class OrdersController { * 彻底删除(根据orderid删除数据库字段) * @return */ - @PostMapping("/delByOrderId/{ordersId}") + @GetMapping("/delByOrderId/{ordersId}") @Operation(summary = "彻底删除订单", description = "根据根据orderid删除数据库字段") Result delByOrderId(@Validated @PathVariable("ordersId") Integer ordersId){ return orderShowService.delByOrderId(ordersId); @@ -108,7 +108,7 @@ public class OrdersController { * @param ordersId * @return */ - @PostMapping("/findAllById/{ordersId}") + @GetMapping("/findAllById/{ordersId}") @Operation(summary = "回显", description = "根据ordersId进行查询信息") Orders findAllById (@Validated @PathVariable("ordersId") Integer ordersId){ return orderShowService.findAllById(ordersId);