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

[BE] 모임 삭제 #85

Merged
merged 14 commits into from
May 2, 2024
Merged

[BE] 모임 삭제 #85

merged 14 commits into from
May 2, 2024

Conversation

jerry3269
Copy link
Contributor

#️⃣연관된 이슈

#66

📝작업 내용

문서화 tag 및 summary 수정
프로필 사진 업로드 및 프로필 수정 변경
모임 생성 시 참여한 모임에 주최자 생성하는 로직 추가
모임 삭제 구현
테스트

💬리뷰 요구사항(선택)

리팩토링한 부분이 많습니다.
모임 삭제할 때, flow는 서비스 계층에 있는게 맞는 것 같아서 서비스 계층에 @Transactional을 걸었습니다.
테스트 코드 및 리팩토링 부분 잘 봐주시면 될 것 같습니다.

@jerry3269 jerry3269 added feat⚙️ 기능 추가 refactor 리팩토링 labels May 1, 2024
@jerry3269 jerry3269 requested review from Anak-2 and 320Hwany May 1, 2024 10:23
@jerry3269 jerry3269 self-assigned this May 1, 2024
Comment on lines 25 to 28
JoinedMoimJpaEntity joinedMoimJpaEntity = JoinedMoimJpaEntity.builder()
.moimId(moimId)
.memberId(memberId)
.build();
Copy link
Member

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 +29 to +41

private final MoimAppender moimAppender;
private final FileUploader fileUploader;
private final MoimFinder moimFinder;
private final MoimUpdater moimUpdater;
private final MoimRemover moimRemover;
private final JoinedMoimAppender joinedMoimAppender;
private final MeetingFinder meetingFinder;
private final JoinedMeetingRemover joinedMeetingRemover;
private final TodoRemover todoRemover;
private final JoinedMoimRemover joinedMoimRemover;
private final ScheduleRemover scheduleRemover;

Copy link
Member

Choose a reason for hiding this comment

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

이거 implement에서 좀 더 묶고 Service에 넘겨도 좋을 것 같습니당

Copy link
Contributor

@Anak-2 Anak-2 left a comment

Choose a reason for hiding this comment

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

조씁니다!


@Transactional
public void createJoinedMoim(final long memberId, final long moimId) {
moimFinder.getById(moimId);
Copy link
Contributor

Choose a reason for hiding this comment

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

validate 로 의도를 나타내는 함수 하나 만들면 더 좋을 것 같아요!

@jerry3269 jerry3269 merged commit a70cfe5 into backend-main May 2, 2024
1 check passed
@jerry3269 jerry3269 deleted the be/feat/moim-delete branch May 2, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat⚙️ 기능 추가 refactor 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 모임 삭제 [REFACTOR] 참여한 모임에 주최자 추가
3 participants