From 1af369e972dc29cae66137345a4efc5dba8c0160 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期五, 12 九月 2025 15:42:32 +0800
Subject: [PATCH] 修改
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 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 9ba2343..117d8f6 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
@@ -64,7 +64,7 @@
@Autowired
private ISysMenuService menuService;
- @PreAuthorize("@ss.hasPermi('system:role')")
+// @PreAuthorize("@ss.hasPermi('system:role')")
@ApiOperation(value = "角色列表")
@PostMapping("/system/role/list")
public AjaxResult list(@RequestBody SysRoleQuery query)
@@ -73,7 +73,7 @@
return AjaxResult.success(list);
}
- @PreAuthorize("@ss.hasPermi('system:role')")
+// @PreAuthorize("@ss.hasPermi('system:role')")
@ApiOperation(value = "角色列表不分页")
@PostMapping("/system/role/listNotPage")
public AjaxResult list()
@@ -81,7 +81,7 @@
List<SysRole> list = roleService.selectRoleList(new SysRole());
return AjaxResult.success(list);
}
- @PreAuthorize("@ss.hasPermi('system:role:count')")
+// @PreAuthorize("@ss.hasPermi('system:role:count')")
@ApiOperation(value = "角色数量统计")
@PostMapping("/system/role/roleCount")
public AjaxResult roleCount()
@@ -110,7 +110,7 @@
/**
* 根据角色编号获取详细信息
*/
- @PreAuthorize("@ss.hasPermi('system:role:query')")
+// @PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/system/role/{roleId}")
public AjaxResult getInfo(@PathVariable Long roleId)
{
@@ -154,7 +154,7 @@
/**
* 新增角色
*/
- @PreAuthorize("@ss.hasPermi('system:role:add')")
+// @PreAuthorize("@ss.hasPermi('system:role:add')")
@ApiOperation(value = "新增角色")
@Log(title = "角色信息-新增角色", businessType = BusinessType.INSERT)
@PostMapping("/system/role/add")
@@ -172,7 +172,7 @@
/**
* 修改保存角色
*/
- @PreAuthorize("@ss.hasPermi('system:role:edit')")
+// @PreAuthorize("@ss.hasPermi('system:role:edit')")
@ApiOperation(value = "编辑角色",response = SysRoleDTO.class)
@Log(title = "角色信息-编辑角色", businessType = BusinessType.UPDATE)
@PostMapping("/api/system/role/edit")
--
Gitblit v1.7.1