| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得群分页") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group:query')") |
| | | public CommonResult<PageResult<ImGroupManagerRespVO>> getGroupPage(@Valid ImGroupManagerPageReqVO pageReqVO) { |
| | | // 1. 分页查询群 |
| | | PageResult<ImGroupDO> pageResult = groupService.getGroupPage(pageReqVO); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得群详情") |
| | | @Parameter(name = "id", description = "群编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:group:query')") |
| | | public CommonResult<ImGroupManagerRespVO> getGroup(@RequestParam("id") Long id) { |
| | | ImGroupDO group = groupService.getGroup(id); |
| | | return success(BeanUtils.toBean(group, ImGroupManagerRespVO.class)); |