From deaa04021266928b16e29fb421d0598f59da656e Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Tue, 7 Mar 2023 12:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=A6=81=E7=94=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../linfeng/modules/admin/controller/AppUserController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java index 4fb2594..1e3557c 100644 --- a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java +++ b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java @@ -93,7 +93,7 @@ public class AppUserController { } - @PostMapping("/ban/{id}") + @GetMapping("/ban/{id}") @RequiresPermissions("admin:user:update") @ApiOperation("用户禁用") public R ban(@PathVariable("id") Integer id){ @@ -103,7 +103,7 @@ public class AppUserController { } - @PostMapping("/openBan/{id}") + @GetMapping("/openBan/{id}") @RequiresPermissions("admin:user:update") @ApiOperation("用户解除禁用") public R openBan(@PathVariable("id") Integer id){