Skip to content

Commit

Permalink
fix: Pageable 객체가 스웨거에 요청 파라미터로 나타나지 않도록 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 5, 2024
1 parent 0175d0d commit bb43dab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,7 +35,8 @@ public ResultResponse<Void> registerFcmToken(@RequestBody NotificationRequest.Fc

@GetMapping("/my")
public ResultResponse<NotificationResponse.PagedNotificationInfo> 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<Notification> notificationPage = notificationService.getNotificationList(member, pageable);
return ResultResponse.of(NotificationResultCode.GET_MY_NOTIFICATION,
NotificationConverter.toNotificationInfo(notificationPage));
Expand Down

0 comments on commit bb43dab

Please sign in to comment.