| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.neighbor.AddComActNeighborCircleAppDTO; |
| | | import com.panzhihua.common.model.dtos.neighbor.ComActNeighborCircleAppDTO; |
| | | import com.panzhihua.common.model.dtos.neighbor.ComActNeighborCircleDetailAppDTO; |
| | | import com.panzhihua.common.model.dtos.neighbor.*; |
| | | import com.panzhihua.common.model.dtos.shop.*; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | |
| | | return communityService.neighborDetailByApp(neighborCircleAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询用户邻里圈列表" , response = ComActNeighborCircleAppVO.class) |
| | | @PostMapping("neighbor/user/page") |
| | | public R neighborExamineByApp(@RequestBody ComActNeighborCircleAppDTO neighborCircleAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | neighborCircleAppDTO.setUserId(userId); |
| | | return communityService.neighborExamineByApp(neighborCircleAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈点赞") |
| | | @PostMapping("neighbor/fabulous") |
| | | public R neighborFabulousByApp(@RequestBody ComActNeighborFabulousAppDTO fabulousAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | fabulousAppDTO.setUserId(userId); |
| | | return communityService.neighborFabulousByApp(fabulousAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈转发") |
| | | @PostMapping("neighbor/forward") |
| | | public R neighborForwardByApp(@RequestBody ComActNeighborForwardAppDTO forwardAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | forwardAppDTO.setUserId(userId); |
| | | return communityService.neighborForwardByApp(forwardAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈评论") |
| | | @PostMapping("neighbor/comment") |
| | | public R neighborCommentByApp(@RequestBody ComActNeighborCommentAppDTO commentAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | commentAppDTO.setUserId(userId); |
| | | return communityService.neighborCommentByApp(commentAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈回复") |
| | | @PostMapping("neighbor/reply") |
| | | public R neighborReplyByApp(@RequestBody ComActNeighborReplyAppDTO replyAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | replyAppDTO.setUserId(userId); |
| | | return communityService.neighborReplyByApp(replyAppDTO); |
| | | } |
| | | |
| | | } |
| | | |