-
Notifications
You must be signed in to change notification settings - Fork 0
[feat/#87] 좋아요한 기록 조회 api 구현 #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
2ghrms
left a comment
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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 프로젝션 + 커서 페이징 참고해서 가져다 쓰시면 될 것 같습니다!
|



📌 연관 이슈
🌱 PR 요약
좋아요한 기록과 기록의 첫번째 사진을 조회하는 api입니다.
🛠 작업 내용
📸 스크린샷
❗️리뷰어들께