| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得角色信息") |
| | | @PreAuthorize("@ss.hasPermission('system:role:query')") |
| | | public CommonResult<RoleRespVO> getRole(@RequestParam("id") Long id) { |
| | | RoleDO role = roleService.getRole(id); |
| | | return success(BeanUtils.toBean(role, RoleRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得角色分页") |
| | | @PreAuthorize("@ss.hasPermission('system:role:query')") |
| | | public CommonResult<PageResult<RoleRespVO>> getRolePage(RolePageReqVO pageReqVO) { |
| | | PageResult<RoleDO> pageResult = roleService.getRolePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, RoleRespVO.class)); |