| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得私聊消息分页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<PageResult<ImPrivateMessageManagerRespVO>> getPrivateMessagePage( |
| | | @Valid ImPrivateMessageManagerPageReqVO pageReqVO) { |
| | | // 1. 分页查询 |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得私聊消息详情") |
| | | @Parameter(name = "id", description = "消息编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<ImPrivateMessageManagerRespVO> getPrivateMessage(@RequestParam("id") Long id) { |
| | | ImPrivateMessageDO message = privateMessageService.getPrivateMessage(id); |
| | | return success(BeanUtils.toBean(message, ImPrivateMessageManagerRespVO.class)); |