| | |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.config.exception.ValidationException; |
| | | import com.mzl.flower.dto.request.comment.CreateFlowerCommentBatchDTO; |
| | | import com.mzl.flower.dto.request.comment.CreateFlowerCommentDTO; |
| | | import com.mzl.flower.dto.request.comment.QueryFlowerCommentDTO; |
| | | import com.mzl.flower.dto.request.comment.UpdateFlowerCommentDTO; |
| | | import com.mzl.flower.dto.request.comment.*; |
| | | import com.mzl.flower.dto.response.comment.FlowerCommentVO; |
| | | import com.mzl.flower.dto.response.coupon.CouponTemplatePointVO; |
| | | import com.mzl.flower.dto.response.coupon.CouponTemplateVO; |
| | |
| | | return returnData(R.SUCCESS.getCode(), flowerCommentService.getSupplierStatis(id)); |
| | | } |
| | | |
| | | @PutMapping("/show/{id}") |
| | | @ApiOperation(value = "显示/隐藏", notes = "显示/隐藏") |
| | | public ResponseEntity<ReturnDataDTO> updateShow(@PathVariable String id,@Validated @RequestBody ShowFlowerCommentDTO dto) { |
| | | |
| | | // 手动设置id值 |
| | | dto.setId(id); |
| | | flowerCommentService.updateShowFlowerComment(dto); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | @PutMapping("/replay/{id}") |
| | | @ApiOperation(value = "评论回复", notes = "评论回复") |
| | | public ResponseEntity<ReturnDataDTO> updateReplay(@PathVariable String id,@Validated @RequestBody ReplayFlowerCommentDTO dto) { |
| | | |
| | | // 手动设置id值 |
| | | dto.setId(id); |
| | | flowerCommentService.updateReplayFlowerComment(dto); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | private void valid(CreateFlowerCommentDTO dto){ |
| | | |
| | | } |