From 949c45ccc05868d8bd41a8f62610e82ce2814ebd Mon Sep 17 00:00:00 2001 From: bflykky Date: Mon, 5 Aug 2024 17:50:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=8C=EB=A6=BC=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C,=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=B2=88=ED=98=B8=20=EB=B0=8F=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EC=A6=88=20=EC=9E=85=EB=A0=A5=ED=95=A0=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification/controller/NotificationController.java | 5 +++++ 1 file changed, 5 insertions(+) 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 84c9886..186b024 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 @@ -10,6 +10,7 @@ import com.umc.naoman.global.result.code.NotificationResultCode; import com.umc.naoman.global.security.annotation.LoginMember; import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.Parameters; import lombok.RequiredArgsConstructor; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; @@ -34,6 +35,10 @@ public ResultResponse registerFcmToken(@RequestBody NotificationRequest.Fc } @GetMapping("/my") + @Parameters(value = { + @Parameter(name = "page", description = "조회할 페이지를 입력해 주세요.(0번부터 시작)"), + @Parameter(name = "size", description = "한 페이지에 나타낼 알림 개수를 입력해주세요.") + }) public ResultResponse getNotifications(@LoginMember Member member, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC) @Parameter(hidden = true) Pageable pageable){