| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得社交客户端") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:social-client:query')") |
| | | public CommonResult<SocialClientRespVO> getSocialClient(@RequestParam("id") Long id) { |
| | | SocialClientDO client = socialClientService.getSocialClient(id); |
| | | return success(BeanUtils.toBean(client, SocialClientRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得社交客户端分页") |
| | | @PreAuthorize("@ss.hasPermission('system:social-client:query')") |
| | | public CommonResult<PageResult<SocialClientRespVO>> getSocialClientPage(@Valid SocialClientPageReqVO pageVO) { |
| | | PageResult<SocialClientDO> pageResult = socialClientService.getSocialClientPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, SocialClientRespVO.class)); |