| | |
| | | } |
| | | |
| | | @ApiOperation(value = "查询邻里圈详情" , response = ComActNeighborCircleDetailAppVO.class) |
| | | @PostMapping("neighbor/detail") |
| | | @PostMapping("detail") |
| | | public R neighborDetailByApp(@RequestBody ComActNeighborCircleDetailAppDTO neighborCircleAppDTO) { |
| | | return communityService.neighborDetailByApp(neighborCircleAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询用户邻里圈列表" , response = ComActNeighborCircleAppVO.class) |
| | | @PostMapping("neighbor/user/page") |
| | | @ApiOperation(value = "分页查询用户邻里圈审核列表" , response = ComActNeighborCircleAppVO.class) |
| | | @PostMapping("user/page") |
| | | public R neighborExamineByApp(@RequestBody ComActNeighborCircleAppDTO neighborCircleAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈点赞") |
| | | @PostMapping("neighbor/fabulous") |
| | | @PostMapping("fabulous") |
| | | public R neighborFabulousByApp(@RequestBody ComActNeighborFabulousAppDTO fabulousAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈转发") |
| | | @PostMapping("neighbor/forward") |
| | | @PostMapping("forward") |
| | | public R neighborForwardByApp(@RequestBody ComActNeighborForwardAppDTO forwardAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈评论") |
| | | @PostMapping("neighbor/comment") |
| | | @PostMapping("comment") |
| | | public R neighborCommentByApp(@RequestBody ComActNeighborCommentAppDTO commentAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈回复") |
| | | @PostMapping("neighbor/reply") |
| | | @PostMapping("reply") |
| | | public R neighborReplyByApp(@RequestBody ComActNeighborReplyAppDTO replyAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | |
| | | return communityService.neighborReplyByApp(replyAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈取消点赞") |
| | | @PostMapping("cancel/fabulous") |
| | | public R neighborFabulousCancelByApp(@RequestBody ComActNeighborFabulousAppDTO fabulousAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | fabulousAppDTO.setUserId(userId); |
| | | return communityService.neighborFabulousCancelByApp(fabulousAppDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "邻里圈添加浏览记录") |
| | | @PostMapping("add/browse") |
| | | public R neighborAddBrowseByApp(@RequestBody ComActNeighborAddBrowseAppDTO addBrowseAppDTO) { |
| | | Long userId = this.getLoginUserInfo().getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请先登录"); |
| | | } |
| | | addBrowseAppDTO.setUserId(userId); |
| | | return communityService.neighborAddBrowseByApp(addBrowseAppDTO); |
| | | } |
| | | |
| | | } |
| | | |