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/139] 매너평가 조회 API 구현 #140

Merged
merged 4 commits into from
Aug 10, 2024
Merged

[Feat/139] 매너평가 조회 API 구현 #140

merged 4 commits into from
Aug 10, 2024

Conversation

hzee97
Copy link
Contributor

@hzee97 hzee97 commented Aug 9, 2024

🚀 개요

매너평가 조회 API 구현

🔍 변경사항

  • 매너평가 조회 API 구현
  • 비매너평가 조회 API 구현

⏳ 작업 내용

  • 매너평가 조회 API 구현.
  • 비매너평가 조회 API 구현.
  • Swagger 명세.

📝 논의사항

@hzee97 hzee97 requested review from rimi3226 and Eunjin3395 August 9, 2024 18:22
@hzee97 hzee97 self-assigned this Aug 9, 2024
@hzee97 hzee97 linked an issue Aug 9, 2024 that may be closed by this pull request
3 tasks
Copy link
Contributor

@rimi3226 rimi3226 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Comment on lines +38 to +39
@Builder
@Setter
Copy link
Contributor

Choose a reason for hiding this comment

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

Builder나 Setter 둘 중 하나만 사용해도 좋을 것 같아요! Builder만 사용하는거 어떠세요!?

Comment on lines +275 to +278
List<MannerRating> mannerRatings = mannerRatingRepository.findByFromMemberIdAndToMemberId(member.getId(), targetMember.getId());
List<MannerRating> positiveMannerRatings = mannerRatings.stream()
.filter(MannerRating::getIsPositive)
.collect(Collectors.toList());
Copy link
Member

Choose a reason for hiding this comment

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

여기서 굳이 전체 mannerRating을 조회한 다음에 stream filter로 positive인 애를 거르지 말고, repository에서 mannerRating을 조회할 때 findByFromMemberIdAndToMemberAndIsPositive ? 이런 식으로 boolean 값까지 입력 받아서 조회하는 방식은 어떤가요?!

@rimi3226 rimi3226 merged commit d92ccb8 into develop Aug 10, 2024
@rimi3226 rimi3226 deleted the feat/139 branch August 10, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [Feat] 매너평가 조회 API 구현
3 participants