| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得 OAuth2 客户端") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:oauth2-client:query')") |
| | | public CommonResult<OAuth2ClientRespVO> getOAuth2Client(@RequestParam("id") Long id) { |
| | | OAuth2ClientDO client = oAuth2ClientService.getOAuth2Client(id); |
| | | return success(BeanUtils.toBean(client, OAuth2ClientRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得 OAuth2 客户端分页") |
| | | @PreAuthorize("@ss.hasPermission('system:oauth2-client:query')") |
| | | public CommonResult<PageResult<OAuth2ClientRespVO>> getOAuth2ClientPage(@Valid OAuth2ClientPageReqVO pageVO) { |
| | | PageResult<OAuth2ClientDO> pageResult = oAuth2ClientService.getOAuth2ClientPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, OAuth2ClientRespVO.class)); |