From f0f6c3b39dddf5cfdf145425687e9339453b5ba1 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期六, 09 九月 2023 10:01:42 +0800 Subject: [PATCH] 将put \ delete改成post \ get --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java index c2501c7..5755ffd 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java @@ -91,7 +91,7 @@ */ @PreAuthorize("@ss.hasPermi('system:post:edit')") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@Validated @RequestBody SysPost post) { if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) @@ -111,7 +111,7 @@ */ @PreAuthorize("@ss.hasPermi('system:post:remove')") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.DELETE) - @DeleteMapping("/{postIds}") + @GetMapping("/remove/{postIds}") public AjaxResult remove(@PathVariable Long[] postIds) { return toAjax(postService.deletePostByIds(postIds)); -- Gitblit v1.9.3