Skip to content

Commit

Permalink
[MODIFY] CommentController Param: (-) perpage, order
Browse files Browse the repository at this point in the history
  • Loading branch information
siksik-Choi committed May 18, 2024
1 parent 9d07f57 commit 7ca6a7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class CommentController {
public ResponseEntity<List<Comment>> getExtraCommentPage(
@PathVariable("boothNum") int boothNum,
@PathVariable("categori") String categori,
@RequestParam("perpage") int perpage,
// @RequestParam("perpage") int perpage,
@RequestParam("page") int page,
@RequestParam("order") String order,
// @RequestParam("order") String order,
@RequestParam("userHash") String userHash
){
List<Comment> result = service.getCommentPage(boothNum, categori, perpage, page, order, userHash);
List<Comment> result = service.getCommentPage(boothNum, categori, 5, page, "desc", userHash);
return ResponseEntity.ok().body(result);
}

Expand Down

0 comments on commit 7ca6a7a

Please sign in to comment.