다이어리 도메인 파사드 패턴 도입 #37
Merged
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.



📌 PR 제목
다이어리 도메인 파사드 패턴 도입
✨ 변경 사항
🔍 변경 이유
기존의 코드 베이스 에서는 한 도메인의 서비스가 다른 도메인의 서비스를 호출하기 위해서
위 두 가지 방법을 혼용해서 썼습니다.
이러한 방식의 문제점은 다음과 같습니다.
따라서 파사드 클래스를 도입해 해결하고자 하였습니다.
파사드 클래스는 사용자 관점에서의 유즈 케이스에 관심사를 두어서,
파사드 클래스에 대한 테스트를 수행하는 것이 곧 유즈케이스에 대한 통합 테스트를 수행하는 것이 되도록 했습니다.
서비스 리팩토링 시 관심사는 다음과 같았습니다.
파사드 클래스는 이러한 방식으로 설계된 서비스 코드들의 흐름을 조합, 제어해서
각 유즈케이스에 따른 원하는 결과를 도출하도록 작성했습니다.
✅ 체크리스트
📸 스크린샷 (선택)
📌 참고 사항