rk
2 天以前 7b09a9950f13521190a4aef9bbc2a6163445566c
server/dmmall_web/src/main/java/com/doumee/api/web/NoticeApi.java
@@ -38,7 +38,10 @@
    })
    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);
    }
    /**
@@ -56,4 +59,18 @@
        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);
    }
}