| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得素材分页;含频道名回填") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel-material:query')") |
| | | public CommonResult<PageResult<ImChannelMaterialRespVO>> getMaterialPage(@Valid ImChannelMaterialPageReqVO pageReqVO) { |
| | | PageResult<ImChannelMaterialDO> pageResult = channelMaterialService.getMaterialPage(pageReqVO); |
| | | if (CollUtil.isEmpty(pageResult.getList())) { |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得素材详情(含富文本正文)") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('im:manager:channel-material:query')") |
| | | public CommonResult<ImChannelMaterialRespVO> getMaterial(@RequestParam("id") Long id) { |
| | | ImChannelMaterialDO material = channelMaterialService.getMaterial(id); |
| | | return success(BeanUtils.toBean(material, ImChannelMaterialRespVO.class)); |