-
Notifications
You must be signed in to change notification settings - Fork 1
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] 채팅방 관련 기능 구현 #143
The head ref may contain hidden characters: "127-\uCC44\uD305\uBC29-\uAD00\uB828-\uAE30\uB2A5-\uAD6C\uD604"
[feat] 채팅방 관련 기능 구현 #143
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.
수고하셨습니다!
Member member = memberService.getMemberReferenceById(memberId); // 없는 경우에 무슨 예외 터지는지 확인 | ||
Product product = productService.findById(productId); |
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.
일부러 프록시 조회, 일반 조회를 혼용하셨나요??
|
||
private final Long senderId; | ||
private final String content; | ||
private final Instant sentTime; |
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.
Instant를 처음 보는데 사용하는 이유가 궁금해요
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.
저번에 구두로 설명드렸었는데, 간단히 설명드리자면
LocalDate, LocalTime, LocalDateTime은 타임존에 얽매이지 않는 문제가 있고 Date 클래스는 다양한 문제점이 있어 deprecated되었습니다. (왜 deprecated 되었는지는 따로 찾아보면 좋을 것 같아요!)
그래서 자바 1.8부터 제공한 Instant를 사용하게 되었습니다.
이전 코드도 수정하고 싶었는데, 시간이 없어서 기존 코드는 수정하지 못하고 새로 추가된 코드만 우선 Instant로 했습니다!
🔑 Key changes
👋 To reviewers
아직 안읽은 메시지 개수 카운팅 하는 로직을 구현하지 못했습니다.
✔️ Completed Issue Number
close #127