Skip to content

Conversation

@juuuuone
Copy link
Collaborator

📌 연관 이슈

🌱 PR 요약

좋아요한 기록과 기록의 첫번째 사진을 조회하는 api입니다.

🛠 작업 내용

📸 스크린샷

❗️리뷰어들께

@juuuuone juuuuone self-assigned this Nov 16, 2025
@juuuuone juuuuone linked an issue Nov 16, 2025 that may be closed by this pull request
@juuuuone juuuuone changed the title Feat/#87 get liked histories [feat/#87] 좋아요한 기록 조회 api 구현 Nov 16, 2025
@sonarqubecloud
Copy link

Copy link
Member

@2ghrms 2ghrms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!!

@GetMapping("/histories")
@Operation(summary = "좋아요한 기록 조회", description = "사용자가 좋아요한 기록을 조회합니다.")
public BaseResponse<SliceResponse<LikedHistoriesResponse.LikedHistoryPreview>>
getLikedHistories(@PageableDefault(size = 10) Pageable pageable) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 프로젝트는 통일된 커서 기반 페이징을 사용하고 있어서 다른 Paging이 쓰이고 있는 부분들을 참고하시면 좋을 것 같아요.
ex) 기록 목록 조회, 댓글 목록 조회 , 알림 목록 조회 , 옷 목록 조회 등등...

현재의 pageable 입력값은 offset 기반 페이징에 더 적합한 것 같아요.

  • 이게 Swagger에서 어떻게 보일지..? 잘 모르겠는데 저기 있는 많은 변수들을 선택적으로 넣을 수 있는건지..?

그래서 기존 처럼 DTO 프로젝션 + 커서 페이징 참고해서 가져다 쓰시면 될 것 같습니다!

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 좋아요한 기록 조회

4 participants