[REFACTOR] FeedController에 Facade 패턴 적용 #324
Open
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.
Related Issue
Key Changes
Feed 도메인에 실험적으로 Facade 패턴을 도입하여, Controller가 직접 여러 Service에 의존하지 않고, 비즈니스 흐름을 단일 진입점(
FeedFacade
)으로 위임하도록 리팩터링했습니다.주요 변경사항
FeedController
→FeedFacade
로 호출 책임 이전FeedService
,CommentService
,PopularFeedService
,LikeService
등은 도메인 중심으로 책임을 재정리Feed
,Comment
엔티티의 내부 메서드 정리 및 일부 이름 변경 (hideFeed
→hide
등)테스트 사항
피드 조회, 생성, 수정, 삭제 정상 작동
댓글 조회, 생성, 수정, 삭제 정상 작동
좋아요, 신고 정상 작동
❗푸시 알림 관련 기능은
notification
레코드가 쌓이는 것은 확인했으나, 로컬 환경에서 테스트하지 못했습니다. (해당 기능 테스트 필요)To Reviewers
원래는 우선 피드 관련 로직에만 퍼사드 패턴을 적용 해보고 괜찮으면 다른 도메인에도 확장하고자 했는데 한 번 봐보시고 괜찮다 싶으면 적용해주세요 ..ㅎㅎ