| | |
| | | }) |
| | | public ApiResponse<PageData<NoticeCardDTO>> findNoticeCardDTOPage(@RequestBody PageWrap<Notice> pageWrap){ |
| | | pageWrap.getModel().setMemberId(this.getMemberId()); |
| | | return ApiResponse.success(noticeService.findNoticeCardDTOPage(pageWrap)); |
| | | PageData<NoticeCardDTO> pageData = noticeService.findNoticeCardDTOPage(pageWrap); |
| | | //标记已读 |
| | | noticeService.autoRead(getMemberId(),pageWrap.getModel().getQueryType()); |
| | | return ApiResponse.success(pageData); |
| | | } |
| | | |
| | | /** |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "用户更新阅读状态", notes = "小程序端") |
| | | @GetMapping("/autoRead") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "noticeType", value = "消息类型:0=系统消息;1=社区消息", required = true) |
| | | }) |
| | | public ApiResponse autoRead(@RequestParam Integer noticeType){ |
| | | noticeService.autoRead(getMemberId(),noticeType); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | } |