| | |
| | | import com.ruoyi.admin.service.RoleService; |
| | | import com.ruoyi.admin.vo.RoleDetailVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @param pageNum 页码 |
| | | * @param pageSize 每页显示条数 |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "角色分页查询列表", tags = {"后台-权限管理-角色管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | /** |
| | | * 角色列表 |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "角色列表", tags = {"后台-权限管理-账号管理"}) |
| | | @GetMapping(value = "/list") |
| | | public R<List<Role>> list() { |
| | |
| | | * |
| | | * @param id 角色id |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "角色详情", tags = {"后台-权限管理-角色管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param roleRequest 角色信息 |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "编辑角色", tags = {"后台-权限管理-角色管理"}) |
| | | @PostMapping(value = "/update") |
| | | public R<RoleDetailVO> update(@RequestBody RoleRequest roleRequest) { |
| | |
| | | * |
| | | * @param roleRequest 角色信息 |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "新增角色", tags = {"后台-权限管理-角色管理"}) |
| | | @PostMapping(value = "/save") |
| | | public R<String> save(@RequestBody RoleRequest roleRequest) { |
| | |
| | | * |
| | | * @param ids 角色id拼接 |
| | | */ |
| | | @RequiresPermissions("power_role") |
| | | @ApiOperation(value = "批量删除角色", tags = {"后台-权限管理-角色管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |