-
Notifications
You must be signed in to change notification settings - Fork 4
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/CK-241] 회원, 인증/인가, 공통 부분 의존성 리펙토링을 한다 #209
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🪄 Test Coverage Report
|
miseongk
approved these changes
Jan 18, 2024
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.
리뷰 반영하느라 고생하셨어요 두둠!
별다른 리뷰가 없어서 Approve 할게요!
고생하셨습니다 👍
backend/kirikiri/src/main/java/co/kirikiri/service/mapper/GoalRoomMapper.java
Outdated
Show resolved
Hide resolved
Ohjintaek
approved these changes
Jan 19, 2024
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 패키지에 있던 dto를 다시 goalroom으로 옮기는 것밖에 없었군요. 간단한 내용이었기에 approve합니다!!
🪄 Test Coverage Report
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 작업 이슈 번호
CK-241
✨ 작업 내용
회원(member), 인증/인가(auth), 공통(commcon) 부분의 의존성 리펙토링을 진행 했습니다. 다른 분께서 담당하는 부분은 최대한 건드리지 않고 진행했습니다.
주요 작업 내용으로는 의존관계를 끊기 위해서 새로운 dto를 만들기, oauth 회원가입 로직 분리가 있습니다.
새로운 dto는 member.service.dto.response 패키지 하위에 위치한 클래스들입니다. 그리고 oauth 회원가입 같은 경우에는 기존에
memberService
에서 토큰까지 만들어서 반환해주고 있었습니다. 그렇게 되면member
와auth
가 양방향 의존관계가 생기는 문제가 발생합니다. 이를 해결하기 위해서memberService
에서는 회원 저장만 진행하도록 하고 토큰 생성은authService
가 하도록 로직을 수정했습니다.💬 리뷰어에게 남길 멘트
다음과 같이 의존성이 흐르게 했습니다.
common -> auth
,common -> member
,auth -> member
그리고 나머지 패키지들도 기본적으로는
common
패키지에 의존하게됩니다.그리고 지금 현재
common
은 다른 패키지에 의존하는 클래스가 몇개 있습니다. 해당 도메인 담당해주시는 분이 변경 해주실 것 같아서 그냥 뒀습니다!🚀 요구사항 분석
member
, 'auth' 관련된 로직을 패키지로 분리한다.member
패키지는common
에 의존한다.auth
패키지는common
,auth
에 의존한다.common
패키지는 어디에도 의존하지 않는다.