Skip to content
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

feat: 탐색 페이지 트랜딩 리스트 조회 API 구현 #77

Merged
merged 5 commits into from
Feb 7, 2024
Merged

Conversation

pparkjs
Copy link
Collaborator

@pparkjs pparkjs commented Feb 6, 2024

Description

  • 트랜딩은 콜렉트 기준으로 정렬하고 동일시 조회수 기준으로 하도록 구현하였습니다!

Reference

Relation Issues

@pparkjs pparkjs added the 기능 label Feb 6, 2024
@pparkjs pparkjs self-assigned this Feb 6, 2024
@pparkjs pparkjs requested a review from kdkdhoho as a code owner February 6, 2024 15:00
@pparkjs pparkjs linked an issue Feb 6, 2024 that may be closed by this pull request
Copy link
Collaborator

@kdkdhoho kdkdhoho left a comment

Choose a reason for hiding this comment

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

일부 내용에 대해 코멘트 남겨두었습니다!
확인 후 답글 부탁드려요~~

.map(item -> item.getImageUrl())
.filter(url -> !url.isEmpty())
.findFirst()
.orElse("");
Copy link
Collaborator

Choose a reason for hiding this comment

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

만약 Item에 imageUrl 값이 존재하지 않으면 "" 로 저장되어 있는 걸로 알고 있습니다.
그렇다면 orElse() 문은 필요없을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 그러네요 알겠습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

동호님 혹시 orElse를 안하면 최종 결과가 Optional.empty()가 반환되는 거로 알고있어서그러는데 어떻게 해야할 까요.. orElse없이는 반환이 Optional이고 그냥 마지막에 get() 해야하나요

@kdkdhoho kdkdhoho changed the title feat: 탐색 페이지 트랜딩 리스트 조회 API 구현 (#74) feat: 탐색 페이지 트랜딩 리스트 조회 API 구현 Feb 7, 2024
@pparkjs pparkjs merged commit a9632a6 into dev Feb 7, 2024
1 check passed
@pparkjs pparkjs deleted the feat/74 branch February 7, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

탐색 페이지 트랜딩 리스트 조회 API 구현
2 participants