Skip to content

Commit

Permalink
fix: 알림 목록 조회 시, 페이지 번호 및 사이즈 입력할 수 있도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 5, 2024
1 parent bb43dab commit 949c45c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,6 +35,10 @@ public ResultResponse<Void> registerFcmToken(@RequestBody NotificationRequest.Fc
}

@GetMapping("/my")
@Parameters(value = {
@Parameter(name = "page", description = "조회할 페이지를 입력해 주세요.(0번부터 시작)"),
@Parameter(name = "size", description = "한 페이지에 나타낼 알림 개수를 입력해주세요.")
})
public ResultResponse<NotificationResponse.PagedNotificationInfo> getNotifications(@LoginMember Member member,
@PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC)
@Parameter(hidden = true) Pageable pageable){
Expand Down

0 comments on commit 949c45c

Please sign in to comment.