| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Api(value = "角色管理控制器",tags = "角色管理控制器") |
| | | @RestController |
| | | @RequestMapping("/system/role") |
| | | public class SysRoleController extends BaseController { |
| | |
| | | return toAjax(roleService.insertRole(role)); |
| | | |
| | | }*/ |
| | | @ApiOperation(value = "新增角色", notes = "系统后台-权限管理") |
| | | @ApiOperation(value = "新增角色", tags = "系统后台-权限管理") |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @Log(title = "角色管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * 修改保存角色 |
| | | */ |
| | | @ApiOperation(value = "修改角色", notes = "系统后台-权限管理") |
| | | @ApiOperation(value = "修改角色", tags = "系统后台-权限管理") |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @Log(title = "角色管理", businessType = BusinessType.INSERT) |
| | | @PutMapping("/edit") |
| | |
| | | /** |
| | | * 删除角色 |
| | | */ |
| | | @ApiOperation(value = "删除角色", notes = "系统后台-权限管理") |
| | | @ApiOperation(value = "删除角色", tags = "系统后台-权限管理") |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @Log(title = "角色管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{roleId}") |
| | |
| | | /** |
| | | * 查看详情 |
| | | */ |
| | | @ApiOperation(value = "查看详情", notes = "系统后台-权限管理") |
| | | @ApiOperation(value = "查看详情", tags = "系统后台-权限管理") |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @Log(title = "角色管理", businessType = BusinessType.DELETE) |
| | | @GetMapping("/{roleId}") |
| | |
| | | /** |
| | | * 获取角色选择框列表 |
| | | */ |
| | | /* |
| | | @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()); |
| | | } |
| | | */ |
| | | |
| | | /** |
| | | * 查询已分配用户角色列表 |