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] 채팅방 관련 기능 구현 #143

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

jinny-l
Copy link
Member

@jinny-l jinny-l commented Oct 4, 2023

🔑 Key changes

👋 To reviewers

아직 안읽은 메시지 개수 카운팅 하는 로직을 구현하지 못했습니다.

✔️ Completed Issue Number

close #127

@jinny-l jinny-l added the ✨ feat 새로운 기능 구현 label Oct 4, 2023
@jinny-l jinny-l added this to the 6주차 마일스톤 milestone Oct 4, 2023
@jinny-l jinny-l requested a review from swinb October 4, 2023 01:53
@jinny-l jinny-l self-assigned this Oct 4, 2023
Copy link

@swinb swinb 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 21 to 22
Member member = memberService.getMemberReferenceById(memberId); // 없는 경우에 무슨 예외 터지는지 확인
Product product = productService.findById(productId);
Copy link

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;
Copy link

Choose a reason for hiding this comment

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

Instant를 처음 보는데 사용하는 이유가 궁금해요

Copy link
Member Author

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로 했습니다!

@jinny-l jinny-l merged commit bcffd4f into stage Oct 4, 2023
@jinny-l jinny-l deleted the 127-채팅방-관련-기능-구현 branch October 4, 2023 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 새로운 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants