|  |  | 
 |  |  |     @Autowired | 
 |  |  |     private ISysUserService userService; | 
 |  |  |  | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     public TableDataInfo list(SysRole role) | 
 |  |  |     { | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Log(title = "角色管理", businessType = BusinessType.EXPORT) | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:export')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:export')") | 
 |  |  |     @GetMapping("/export") | 
 |  |  |     public AjaxResult export(SysRole role) | 
 |  |  |     { | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据角色编号获取详细信息 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:query')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:query')") | 
 |  |  |     @GetMapping(value = "/{roleId}") | 
 |  |  |     public AjaxResult getInfo(@PathVariable Long roleId) | 
 |  |  |     { | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 新增角色 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:add')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:add')") | 
 |  |  |     @Log(title = "角色管理", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping | 
 |  |  |     public AjaxResult add(@Validated @RequestBody SysRole role) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 修改保存角色 | 
 |  |  |      */ | 
 |  |  |     @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) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 修改保存数据权限 | 
 |  |  |      */ | 
 |  |  |     @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) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 状态修改 | 
 |  |  |      */ | 
 |  |  |     @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) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 删除角色 | 
 |  |  |      */ | 
 |  |  |     @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) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取角色选择框列表 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:query')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:query')") | 
 |  |  |     @GetMapping("/optionselect") | 
 |  |  |     public AjaxResult optionselect() | 
 |  |  |     { | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 查询已分配用户角色列表 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     @GetMapping("/authUser/allocatedList") | 
 |  |  |     public TableDataInfo allocatedList(SysUser user) | 
 |  |  |     { | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 查询未分配用户角色列表 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:list')") | 
 |  |  |     @GetMapping("/authUser/unallocatedList") | 
 |  |  |     public TableDataInfo unallocatedList(SysUser user) | 
 |  |  |     { | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 取消授权用户 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     @Log(title = "角色管理", businessType = BusinessType.GRANT) | 
 |  |  |     @PostMapping("/authUser/cancel/cancelAuthUser") | 
 |  |  |     public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 批量取消授权用户 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     @Log(title = "角色管理", businessType = BusinessType.GRANT) | 
 |  |  |     @PostMapping("/authUser/cancelAll/cancelAuthUserAll") | 
 |  |  |     public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 批量选择用户授权 | 
 |  |  |      */ | 
 |  |  |     @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     // @PreAuthorize("@ss.hasPermi('system:role:edit')") | 
 |  |  |     @Log(title = "角色管理", businessType = BusinessType.GRANT) | 
 |  |  |     @PostMapping("/authUser/selectAll/selectAuthUserAll") | 
 |  |  |     public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) |