-
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 #142] 채팅 요청 API를 채팅방 API로부터 분리 #143
Conversation
Code Coverage
|
Test Results 28 files 28 suites 14s ⏱️ Results for commit a6371c5. ♻️ This comment has been updated with latest results. |
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.
고생하셨습니다. 새벽 시간이 늦어서 리뷰를 하지 못해 선 승인하고 금일 내로 코드리뷰 진행하겠습니다.
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.
Chat-> chatInquiry, ChaMessage의 디렉토리를 caht으로 변경하신 이유가 무엇인가요?
chatInquiry와 chatRoom은 무엇이 다른지 잘 모르겠네요..!
private Member getChatPartner(Member member, ChatRoom chatRoom) { | ||
if (member.isEqualMember(chatRoom.getAnswerer().getId())) { | ||
return chatRoom.getInquirer(); | ||
} else if (member.isEqualMember(chatRoom.getInquirer().getId())) { |
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.
else-if절을 지양하는게 좋을 것 같아요!
@@ -133,6 +133,10 @@ public void updateProfile(String nickname, JobGroup jobGroup, JobCategory jobCat | |||
this.jobCategory = jobCategory; | |||
} | |||
|
|||
public boolean isEqualMember(Long id) { |
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.
eqluas를 재정의해서 쓰는 것도 좋아보여요!
equals와 JAP 영속성 관련해서 제가 어제 포스팅 하나 했는데 한 번 읽어보시면 좋을 것 같습니다!
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.
넵! 다음 PR에 수정해서 반영하겠습니다~
정확히는 디렉토리를 chatroom과 chat_inquiry로 분류했습니다. 두 엔티티의 역할이 다르다고 생각해서 분리하였습니다. |
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분