From 63ebc0007e9958bd6680c6841a7460b053275790 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 22 四月 2024 14:20:15 +0800 Subject: [PATCH] 将 @PreAuthorize 全部注释 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 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 5755ffd..6d01a70 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 @@ -37,7 +37,7 @@ /** * 鑾峰彇宀椾綅鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:post:list')") + // @PreAuthorize("@ss.hasPermi('system:post:list')") @GetMapping("/list") public TableDataInfo list(SysPost post) { @@ -47,7 +47,7 @@ } @Log(title = "宀椾綅绠$悊", businessType = BusinessType.EXPORT) - @PreAuthorize("@ss.hasPermi('system:post:export')") + // @PreAuthorize("@ss.hasPermi('system:post:export')") @GetMapping("/export") public AjaxResult export(SysPost post) { @@ -59,7 +59,7 @@ /** * 鏍规嵁宀椾綅缂栧彿鑾峰彇璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:post:query')") + // @PreAuthorize("@ss.hasPermi('system:post:query')") @GetMapping(value = "/{postId}") public AjaxResult getInfo(@PathVariable Long postId) { @@ -69,7 +69,7 @@ /** * 鏂板宀椾綅 */ - @PreAuthorize("@ss.hasPermi('system:post:add')") + // @PreAuthorize("@ss.hasPermi('system:post:add')") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@Validated @RequestBody SysPost post) @@ -89,7 +89,7 @@ /** * 淇敼宀椾綅 */ - @PreAuthorize("@ss.hasPermi('system:post:edit')") + // @PreAuthorize("@ss.hasPermi('system:post:edit')") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.UPDATE) @PostMapping("/edit") public AjaxResult edit(@Validated @RequestBody SysPost post) @@ -109,7 +109,7 @@ /** * 鍒犻櫎宀椾綅 */ - @PreAuthorize("@ss.hasPermi('system:post:remove')") + // @PreAuthorize("@ss.hasPermi('system:post:remove')") @Log(title = "宀椾綅绠$悊", businessType = BusinessType.DELETE) @GetMapping("/remove/{postIds}") public AjaxResult remove(@PathVariable Long[] postIds) -- Gitblit v1.9.3