From a6a2ddffdbdb65e38172f0d12295ece194cbb9cf Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期三, 13 十二月 2023 09:29:00 +0800
Subject: [PATCH] 网关删除和编辑

---
 src/main/java/com/whyc/controller/GatewayInfController.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/GatewayInfController.java b/src/main/java/com/whyc/controller/GatewayInfController.java
index 984c176..726211c 100644
--- a/src/main/java/com/whyc/controller/GatewayInfController.java
+++ b/src/main/java/com/whyc/controller/GatewayInfController.java
@@ -47,4 +47,16 @@
     public Response addGateway(@RequestBody GatewayInf ginf){
         return service.addGateway(ginf);
     }
+
+    @PostMapping("updateGateway")
+    @ApiOperation("缂栬緫缃戝叧")
+    public Response updateGateway(@RequestBody GatewayInf ginf){
+        return service.updateGateway(ginf);
+    }
+
+    @GetMapping("deleteGateway")
+    @ApiOperation("鍒犻櫎缃戝叧")
+    public Response deleteGateway(@RequestParam int num){
+        return service.deleteGateway(num);
+    }
 }

--
Gitblit v1.9.1