|
|
@ -71,6 +71,13 @@ public class CommentController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/{page}/{size}")
|
|
|
|
|
|
|
|
public Result search(@PathVariable int page,@PathVariable int size){
|
|
|
|
|
|
|
|
Page<Comment> pageData = commentService.search(page,size);
|
|
|
|
|
|
|
|
return Result.success(new PageResult<Comment>(pageData.getTotalElements(),pageData.getContent()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/{commentId}")
|
|
|
|
@GetMapping("/{commentId}")
|
|
|
|
public Result findById(@PathVariable String commentId){
|
|
|
|
public Result findById(@PathVariable String commentId){
|
|
|
|
return Result.success(commentService.findById(commentId));
|
|
|
|
return Result.success(commentService.findById(commentId));
|
|
|
|