From 0f4c1242295ba4c7b41fd65eb2e5b19f7d40f65b Mon Sep 17 00:00:00 2001 From: sim-mer Date: Thu, 14 Nov 2024 21:03:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ApiResponse=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../helpmeCookies/product/controller/ProductController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/helpmeCookies/product/controller/ProductController.java b/src/main/java/com/helpmeCookies/product/controller/ProductController.java index 56fcb37..2ccdffe 100644 --- a/src/main/java/com/helpmeCookies/product/controller/ProductController.java +++ b/src/main/java/com/helpmeCookies/product/controller/ProductController.java @@ -101,11 +101,11 @@ public ResponseEntity getProductsByPage( } @GetMapping("/feed") - public ResponseEntity getProductsWithRandomPaging( + public ResponseEntity> getProductsWithRandomPaging( @RequestParam(name = "size", required = false, defaultValue = "20") int size ) { Pageable pageable = PageRequest.of(0, size); - return ResponseEntity.ok(productService.getProductsWithRandomPaging(pageable)); + return ResponseEntity.ok(ApiResponse.success(SuccessCode.OK, productService.getProductsWithRandomPaging(pageable))); } @GetMapping("/{productId}/reviews")