From bb43dab9d3f4d4859262e12f6f5cb2138f45eb15 Mon Sep 17 00:00:00 2001 From: bflykky Date: Mon, 5 Aug 2024 16:53:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Pageable=20=EA=B0=9D=EC=B2=B4=EA=B0=80?= =?UTF-8?q?=20=EC=8A=A4=EC=9B=A8=EA=B1=B0=EC=97=90=20=EC=9A=94=EC=B2=AD=20?= =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=EB=A1=9C=20=EB=82=98?= =?UTF-8?q?=ED=83=80=EB=82=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification/controller/NotificationController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/umc/naoman/domain/notification/controller/NotificationController.java b/src/main/java/com/umc/naoman/domain/notification/controller/NotificationController.java index 178db8f..84c9886 100644 --- a/src/main/java/com/umc/naoman/domain/notification/controller/NotificationController.java +++ b/src/main/java/com/umc/naoman/domain/notification/controller/NotificationController.java @@ -9,6 +9,7 @@ import com.umc.naoman.global.result.ResultResponse; import com.umc.naoman.global.result.code.NotificationResultCode; import com.umc.naoman.global.security.annotation.LoginMember; +import io.swagger.v3.oas.annotations.Parameter; import lombok.RequiredArgsConstructor; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; @@ -34,7 +35,8 @@ public ResultResponse registerFcmToken(@RequestBody NotificationRequest.Fc @GetMapping("/my") public ResultResponse getNotifications(@LoginMember Member member, - @PageableDefault(sort = "createdAt", direction =Sort.Direction.DESC) Pageable pageable){ + @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC) + @Parameter(hidden = true) Pageable pageable){ Page notificationPage = notificationService.getNotificationList(member, pageable); return ResultResponse.of(NotificationResultCode.GET_MY_NOTIFICATION, NotificationConverter.toNotificationInfo(notificationPage));