| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得通话记录分页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<PageResult<ImRtcCallManagerRespVO>> getCallPage(@Valid ImRtcCallManagerPageReqVO pageReqVO) { |
| | | PageResult<ImRtcCallDO> pageResult = rtcCallService.getCallPage(pageReqVO); |
| | | return success(buildCallRespVOPage(pageResult)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得通话记录详情") |
| | | @Parameter(name = "id", description = "通话编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<ImRtcCallManagerRespVO> getCall(@RequestParam("id") Long id) { |
| | | ImRtcCallDO call = rtcCallService.getCall(id); |
| | | if (call == null) { |
| | |
| | | @GetMapping("/participant-list") |
| | | @Operation(summary = "获得通话参与者列表") |
| | | @Parameter(name = "id", description = "通话编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:rtc:query')") |
| | | public CommonResult<List<ImRtcParticipantManagerRespVO>> getCallParticipantList(@RequestParam("id") Long id) { |
| | | List<ImRtcParticipantDO> participants = rtcCallService.getCallParticipantListByCallId(id); |
| | | if (CollUtil.isEmpty(participants)) { |