| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.validation.Valid; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得群聊消息分页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<PageResult<ImGroupMessageManagerRespVO>> getGroupMessagePage( |
| | | @Valid ImGroupMessageManagerPageReqVO pageReqVO) { |
| | | // 1. 分页查询 |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得群聊消息详情") |
| | | @Parameter(name = "id", description = "消息编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:message:query')") |
| | | public CommonResult<ImGroupMessageManagerRespVO> getGroupMessage(@RequestParam("id") Long id) { |
| | | ImGroupMessageDO message = groupMessageService.getGroupMessage(id); |
| | | return success(BeanUtils.toBean(message, ImGroupMessageManagerRespVO.class)); |