From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java index 6593999..cf14cf6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java @@ -56,7 +56,7 @@ @Autowired private ISysDeptService deptService; - @PreAuthorize("@ss.hasPermi('system:role:list')") + //@PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/list") public TableDataInfo list(SysRole role) { @@ -66,7 +66,7 @@ } @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.EXPORT) - @PreAuthorize("@ss.hasPermi('system:role:export')") + //@PreAuthorize("@ss.hasPermi('system:role:export')") @PostMapping("/export") public void export(HttpServletResponse response, SysRole role) { @@ -78,7 +78,7 @@ /** * 鏍规嵁瑙掕壊缂栧彿鑾峰彇璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:role:query')") + //@PreAuthorize("@ss.hasPermi('system:role:query')") @GetMapping(value = "/{roleId}") public AjaxResult getInfo(@PathVariable Long roleId) { @@ -89,7 +89,7 @@ /** * 鏂板瑙掕壊 */ - @PreAuthorize("@ss.hasPermi('system:role:add')") + //@PreAuthorize("@ss.hasPermi('system:role:add')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.INSERT) @PostMapping("/add") public AjaxResult add(@Validated @RequestBody SysRole role) @@ -110,7 +110,7 @@ /** * 淇敼淇濆瓨瑙掕壊 */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE) @PostMapping("/edit") public AjaxResult edit(@Validated @RequestBody SysRole role) @@ -145,7 +145,7 @@ /** * 淇敼淇濆瓨鏁版嵁鏉冮檺 */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE) @PostMapping("/dataScope") public AjaxResult dataScope(@RequestBody SysRole role) @@ -158,7 +158,7 @@ /** * 鐘舵�佷慨鏀� */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE) @PostMapping("/changeStatus") public AjaxResult changeStatus(@RequestBody SysRole role) @@ -172,7 +172,7 @@ /** * 鍒犻櫎瑙掕壊 */ - @PreAuthorize("@ss.hasPermi('system:role:remove')") + //@PreAuthorize("@ss.hasPermi('system:role:remove')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.DELETE) @GetMapping("/remove/{roleIds}") public AjaxResult remove(@PathVariable Long[] roleIds) @@ -183,7 +183,7 @@ /** * 鑾峰彇瑙掕壊閫夋嫨妗嗗垪琛� */ - @PreAuthorize("@ss.hasPermi('system:role:query')") + //@PreAuthorize("@ss.hasPermi('system:role:query')") @GetMapping("/optionselect") public AjaxResult optionselect() { @@ -193,7 +193,7 @@ /** * 鏌ヨ宸插垎閰嶇敤鎴疯鑹插垪琛� */ - @PreAuthorize("@ss.hasPermi('system:role:list')") + //@PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/authUser/allocatedList") public TableDataInfo allocatedList(SysUser user) { @@ -205,7 +205,7 @@ /** * 鏌ヨ鏈垎閰嶇敤鎴疯鑹插垪琛� */ - @PreAuthorize("@ss.hasPermi('system:role:list')") + //@PreAuthorize("@ss.hasPermi('system:role:list')") @GetMapping("/authUser/unallocatedList") public TableDataInfo unallocatedList(SysUser user) { @@ -217,7 +217,7 @@ /** * 鍙栨秷鎺堟潈鐢ㄦ埛 */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT) @PostMapping("/authUser/cancel") public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) @@ -228,7 +228,7 @@ /** * 鎵归噺鍙栨秷鎺堟潈鐢ㄦ埛 */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT) @PostMapping("/authUser/cancelAll") public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) @@ -239,7 +239,7 @@ /** * 鎵归噺閫夋嫨鐢ㄦ埛鎺堟潈 */ - @PreAuthorize("@ss.hasPermi('system:role:edit')") + //@PreAuthorize("@ss.hasPermi('system:role:edit')") @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT) @PostMapping("/authUser/selectAll") public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) @@ -251,7 +251,7 @@ /** * 鑾峰彇瀵瑰簲瑙掕壊閮ㄩ棬鏍戝垪琛� */ - @PreAuthorize("@ss.hasPermi('system:role:query')") + //@PreAuthorize("@ss.hasPermi('system:role:query')") @GetMapping(value = "/deptTree/{roleId}") public AjaxResult deptTree(@PathVariable("roleId") Long roleId) { -- Gitblit v1.9.3