From 7ca6a7a08a1efe807724982038092774cc77db70 Mon Sep 17 00:00:00 2001 From: siksik-Choi Date: Sat, 18 May 2024 22:40:35 +0900 Subject: [PATCH] [MODIFY] CommentController Param: (-) perpage, order --- .../domain/comment/controller/CommentController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/LlikelionKNU/KNUfest/domain/comment/controller/CommentController.java b/src/main/java/LlikelionKNU/KNUfest/domain/comment/controller/CommentController.java index 850eded..c221d00 100644 --- a/src/main/java/LlikelionKNU/KNUfest/domain/comment/controller/CommentController.java +++ b/src/main/java/LlikelionKNU/KNUfest/domain/comment/controller/CommentController.java @@ -23,12 +23,12 @@ public class CommentController { public ResponseEntity> 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 result = service.getCommentPage(boothNum, categori, perpage, page, order, userHash); + List result = service.getCommentPage(boothNum, categori, 5, page, "desc", userHash); return ResponseEntity.ok().body(result); }