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

채팅 데이터 생성 및 모임마다의 전체 조회 기능 구현 #165

Merged
merged 9 commits into from
Aug 1, 2024

Conversation

Mingyum-Kim
Copy link
Contributor

PR의 목적이 무엇인가요?

채팅 데이터 생성 및 모임마다의 전체 조회 기능을 구현하였습니다.

이슈 ID는 무엇인가요?

설명

우선 데이터베이스에 INSERT, SELECT 하는 방식으로 구현하였어요.
채팅을 조회할 때는 ""아직 조회되지 않은 채팅""을 필터링해서 목록을 클라이언트에게 보내줍니다.

질문 혹은 공유 사항 (Optional)

@Mingyum-Kim Mingyum-Kim added BE 백엔드 관련 이슈입니다. 🌱 기능추가 feature (새로운 기능 구현) labels Jul 31, 2024
@Mingyum-Kim Mingyum-Kim changed the base branch from develop to develop-backend July 31, 2024 08:33
Copy link
Contributor

@ay-eonii ay-eonii 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 13 to 14
@NotNull Long moimId,
@NotBlank String content
Copy link
Contributor

Choose a reason for hiding this comment

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

통일성을 위해 어노테이션과 개행을 하는 건 어떤가요?

Copy link
Contributor Author

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

Choose a reason for hiding this comment

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

저는 모임이 없는 경우 (moim패키지가 아니더라도) MoimException을 발생시켰는데 , 이 부분에 대해 이야기하고 통일하면 좋을 것 같아요~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

녜에

Copy link
Contributor

@ksk0605 ksk0605 left a comment

Choose a reason for hiding this comment

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

어프루브 드릴게요~ 간단한 코멘트 2개 남겼는데 무시해도 되지만.. 무시하면.. 테바..쪼끔...서우넹 ㅠ

Comment on lines 8 to 10
public enum ChatErrorMessage {
MOIM_NOT_FOUND("존재하지 않는 모임에 채팅할 수 없습니다.");

Copy link
Contributor

Choose a reason for hiding this comment

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

한 줄 띄어주세요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

녜에

Comment on lines 36 to 38
.map(ChatFindDetailResponse::toResponse)
.toList();
return new ChatFindUnloadedResponse(member.getId(), chats);
Copy link
Contributor

Choose a reason for hiding this comment

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

저는 띄어쓰기를 의미 단위로 자르는 걸 좋아하는데 리턴문과 채팅을 가져오는 단계를 구분하는 것은 어떤가요???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

녜에

@Mingyum-Kim Mingyum-Kim merged commit 7982f13 into develop-backend Aug 1, 2024
1 check passed
@Mingyum-Kim Mingyum-Kim deleted the feature/#147 branch August 1, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 관련 이슈입니다. 🌱 기능추가 feature (새로운 기능 구현)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants