-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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.
고생하셨습니다!
@Builder | ||
@Setter |
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.
Builder나 Setter 둘 중 하나만 사용해도 좋을 것 같아요! Builder만 사용하는거 어떠세요!?
List<MannerRating> mannerRatings = mannerRatingRepository.findByFromMemberIdAndToMemberId(member.getId(), targetMember.getId()); | ||
List<MannerRating> positiveMannerRatings = mannerRatings.stream() | ||
.filter(MannerRating::getIsPositive) | ||
.collect(Collectors.toList()); |
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.
여기서 굳이 전체 mannerRating을 조회한 다음에 stream filter로 positive인 애를 거르지 말고, repository에서 mannerRating을 조회할 때 findByFromMemberIdAndToMemberAndIsPositive ? 이런 식으로 boolean 값까지 입력 받아서 조회하는 방식은 어떤가요?!
🚀 개요
매너평가 조회 API 구현
🔍 변경사항
⏳ 작업 내용
📝 논의사항