| | |
| | | |
| | | import cn.lili.group.Update; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.modules.lmk.domain.form.ThumbsUpRecordForm; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | private final VideoCommentService videoCommentService; |
| | | |
| | | @PostMapping("/thumbs_up") |
| | | @ApiOperation(value = "点赞评论", notes = "点赞评论") |
| | | public Result thumbsUp(@RequestBody @Validated(Add.class) ThumbsUpRecordForm form) { |
| | | return videoCommentService.thumbsUp(form); |
| | | } |
| | | |
| | | @PostMapping("/cancel/thumbs_up") |
| | | @ApiOperation(value = "取消点赞评论", notes = "取消点赞评论") |
| | | public Result cancelThumbsUp(@RequestBody @Validated(Add.class) ThumbsUpRecordForm form) { |
| | | return videoCommentService.cancelThumbsUp(form); |
| | | } |
| | | |
| | | @PostMapping("/comment") |
| | | @ApiOperation(value = "评论", notes = "评论") |
| | | public Result comment(@RequestBody @Validated(Add.class) VideoCommentForm form) { |