| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | |
| | | @PostMapping("/apply") |
| | | public ApiResponse<Comment> apply(@RequestBody CommentApplyRequest comment) { |
| | | return ApiResponse.success(commentService.apply(comment,getMemberId())); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("删除评论") |
| | | @GetMapping("/delete/{id}") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | commentService.deleteById(id,getMemberId()); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | |
| | | * @param pageWrap 分页对象 |
| | | * @return PageData<Comment> |
| | | */ |
| | | @LoginRequired |
| | | @ApiOperation("分页活动探店评论回复查询") |
| | | @PostMapping("/findActivityReplyCommentDTOPage") |
| | | public ApiResponse<PageData<ActivityReplyCommentDTO>> findActivityReplyCommentDTOPage(@RequestBody PageWrap<CommentDTO> pageWrap){ |