| | |
| | | ) = notificationService.getUnReadNoticeNum(userId) |
| | | |
| | | @ApiOperation(value = "发布通知") |
| | | @PostMapping("{userId}/release") |
| | | @PostMapping("/{userId}/release") |
| | | fun releaseNotice( |
| | | @ApiParam("用户id") @PathVariable("userId") userId: String, |
| | | @ApiParam("通知") @RequestBody notice: NotificationVo |
| | | ) = notificationService.releaseNotice(userId, notice) |
| | | |
| | | @ApiOperation(value = "推送一条微信订阅消息") |
| | | @GetMapping("/wx/message/subscribe/send") |
| | | fun pushMsgWx( |
| | | @ApiParam("模板id") @RequestParam("templateId") templateId: Int |
| | | ) = notificationService.pushMsgWx(templateId) |
| | | } |