huliguo
2025-05-30 ac89371643d184cae09b2f93af2e1fce401dc92f
pt-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
@@ -43,7 +43,6 @@
 * 
 * @author ruoyi
 */
@Api(value = "角色管理控制器",tags = "角色管理控制器")
@RestController
@RequestMapping("/system/role")
public class SysRoleController extends BaseController {
@@ -125,7 +124,7 @@
        return toAjax(roleService.insertRole(role));
    }*/
    @ApiOperation(value = "新增角色", notes = "系统后台-权限管理")
    @ApiOperation(value = "新增角色", tags = "系统后台-权限管理")
    @PreAuthorize("@ss.hasPermi('system:role:list')")
    @Log(title = "角色管理", businessType = BusinessType.INSERT)
    @PostMapping("/add")
@@ -138,7 +137,7 @@
    /**
     * 修改保存角色
     */
    @ApiOperation(value = "修改角色", notes = "系统后台-权限管理")
    @ApiOperation(value = "修改角色", tags = "系统后台-权限管理")
    @PreAuthorize("@ss.hasPermi('system:role:list')")
    @Log(title = "角色管理", businessType = BusinessType.INSERT)
    @PutMapping("/edit")
@@ -209,7 +208,7 @@
    /**
     * 删除角色
     */
    @ApiOperation(value = "删除角色", notes = "系统后台-权限管理")
    @ApiOperation(value = "删除角色", tags = "系统后台-权限管理")
    @PreAuthorize("@ss.hasPermi('system:role:list')")
    @Log(title = "角色管理", businessType = BusinessType.DELETE)
    @DeleteMapping("/{roleId}")
@@ -220,7 +219,7 @@
    /**
     * 查看详情
     */
    @ApiOperation(value = "查看详情", notes = "系统后台-权限管理")
    @ApiOperation(value = "查看详情", tags = "系统后台-权限管理")
    @PreAuthorize("@ss.hasPermi('system:role:list')")
    @Log(title = "角色管理", businessType = BusinessType.DELETE)
    @GetMapping("/{roleId}")
@@ -233,14 +232,12 @@
    /**
     * 获取角色选择框列表
     */
/*
    @ApiOperation(value = "获取角色选择框列表", notes = "获取角色选择框列表")
    @PreAuthorize("@ss.hasPermi('system:role:query')")
    @GetMapping("/optionselect")
    public AjaxResult optionselect() {
        return success(roleService.selectRoleAll());
    @ApiOperation(value = "账号管理-获取角色下拉框", tags = "系统后台-权限管理")
    @PreAuthorize("@ss.hasPermi('system:user:list')")
    @GetMapping("/getOptionSelect")
    public R<List<SysRoleVO>> getOptionSelect() {
        return R.ok(roleService.getOptionSelect());
    }
*/
    /**
     * 查询已分配用户角色列表