-
Notifications
You must be signed in to change notification settings - Fork 7
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
채팅 데이터 생성 및 모임마다의 전체 조회 기능 구현 #165
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.
고생했습니다 👍 문제 없어보여용~!!!
@NotNull Long moimId, | ||
@NotBlank String content |
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.
녜에
|
||
public void createChat(ChatCreateRequest chatCreateRequest, Member member) { | ||
Moim moim = moimRepository.findById(chatCreateRequest.moimId()) | ||
.orElseThrow(() -> new ChatException(HttpStatus.BAD_REQUEST, ChatErrorMessage.MOIM_NOT_FOUND)); |
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.
저는 모임이 없는 경우 (moim패키지가 아니더라도) MoimException을 발생시켰는데 , 이 부분에 대해 이야기하고 통일하면 좋을 것 같아요~
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.
어프루브 드릴게요~ 간단한 코멘트 2개 남겼는데 무시해도 되지만.. 무시하면.. 테바..쪼끔...서우넹 ㅠ
public enum ChatErrorMessage { | ||
MOIM_NOT_FOUND("존재하지 않는 모임에 채팅할 수 없습니다."); | ||
|
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.
녜에
.map(ChatFindDetailResponse::toResponse) | ||
.toList(); | ||
return new ChatFindUnloadedResponse(member.getId(), chats); |
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.
녜에
PR의 목적이 무엇인가요?
채팅 데이터 생성 및 모임마다의 전체 조회 기능을 구현하였습니다.
이슈 ID는 무엇인가요?
설명
우선 데이터베이스에 INSERT, SELECT 하는 방식으로 구현하였어요.
채팅을 조회할 때는 ""아직 조회되지 않은 채팅""을 필터링해서 목록을 클라이언트에게 보내줍니다.
질문 혹은 공유 사항 (Optional)