feiyu02
2022-10-21 f22c4b9230808fed4fec80c435eccb4c833349a0
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NotificationController.kt
@@ -43,9 +43,15 @@
    ) = 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)
}