Last active
November 1, 2021 02:44
-
-
Save GeekTree0101/4cd4cb08bd4a88df503d00763a165896 to your computer and use it in GitHub Desktop.
Usecase 추상화 vs 실객체
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
protocol FeedUsecase { } | |
final class BusinessFeedUsecase: FeedUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } | |
} | |
final class FleaMarketFeedUsecase: FeedUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } | |
} | |
final class FeedPresentation { | |
init(feed: FeedUsecase) { ... } | |
} |
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
final class ArticleWatchUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } | |
} | |
final class ArticleStatusUsecase { | |
init(repo: ArticleRepositoryProtocol) { ... } | |
} | |
final class ArticleDetailPresentation { | |
init(watch: ArticleWatchUsecase, status: ArticleStatusUsecase) { ... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment