| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得站内信模版") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-template:query')") |
| | | public CommonResult<NotifyTemplateRespVO> getNotifyTemplate(@RequestParam("id") Long id) { |
| | | NotifyTemplateDO template = notifyTemplateService.getNotifyTemplate(id); |
| | | return success(BeanUtils.toBean(template, NotifyTemplateRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得站内信模版分页") |
| | | @PreAuthorize("@ss.hasPermission('system:notify-template:query')") |
| | | public CommonResult<PageResult<NotifyTemplateRespVO>> getNotifyTemplatePage(@Valid NotifyTemplatePageReqVO pageVO) { |
| | | PageResult<NotifyTemplateDO> pageResult = notifyTemplateService.getNotifyTemplatePage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, NotifyTemplateRespVO.class)); |