| | |
| | | private IArticleService iArticleService; |
| | | |
| | | @PostMapping("/getArticleList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-获取资讯") |
| | | public R<PageDTO<ArticleVO>> getArticleList( @RequestBody ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getArticleList(articleDTO)); |
| | | } |
| | | |
| | | @PostMapping("/getMemberArticleList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-获取用户资讯") |
| | | public R<PageDTO<Article>> getMemberArticleList(@RequestBody ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getMemberArticleList(articleDTO)); |
| | | } |
| | | |
| | | @PostMapping("/saveMemberArticle") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-添加或者修改用户资讯") |
| | | public R saveMemberArticle(@RequestBody ArticleDTO articleDTO) { |
| | | iArticleService.saveMemberArticle(articleDTO); |
| | |
| | | } |
| | | |
| | | @PostMapping("/delMemberArticle") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-删除用户资讯") |
| | | public R delMemberArticle(@RequestBody ArticleDTO articleDTO) { |
| | | iArticleService.delMemberArticle(articleDTO); |
| | |
| | | |
| | | |
| | | @PostMapping("/getMemberArticleInfo") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-获取资讯详情") |
| | | public R<ArticleVO> getMemberArticleInfo(ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getMemberArticleInfo(articleDTO)); |
| | |
| | | |
| | | |
| | | @PostMapping("/getArticleCommentsList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-获取评论列表") |
| | | public R<PageDTO<ArticleCommentsVO>> getArticleCommentsList(ArticleDTO articleDTO) { |
| | | public R<PageDTO<ArticleCommentsVO>> getArticleCommentsList(@RequestBody ArticleDTO articleDTO) { |
| | | return R.ok(iArticleService.getArticleCommentsList(articleDTO)); |
| | | } |
| | | |
| | | @PostMapping("/getreport") |
| | | @ResponseBody |
| | | @ApiOperation(value = "用户端-用户举报举报文章") |
| | | public R getReport(ArticleDTO articleDTO) { |
| | | public R getReport(@RequestBody ArticleDTO articleDTO) { |
| | | iArticleService.getReport(articleDTO); |
| | | return R.ok(); |
| | | } |