-
Notifications
You must be signed in to change notification settings - Fork 0
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
RecipeDetailInteractor, RecipeListInteractor 의 ouput을 제거, 네이밍을 수정하였습니다. #15
Conversation
@@ -9,16 +9,18 @@ import UIKit | |||
|
|||
final class RecipeListViewController: UIViewController { | |||
|
|||
private var interactor: RecipeListInteractor | |||
private var recipes: [RecipeListItemViewModel] = [] | |||
private var interactor: RecipeListInteractorImpl |
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.
여기는 수정되면 안될것 같아요
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.
[bf8676f] 수정했습니다
private let recipeListMapper = RecipeListMapper() | ||
private let router: RecipeListRouterProtocol | ||
|
||
init(interactor: RecipeListInteractorImpl, router: RecipeListRouterProtocol) { |
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.
여기도 구현체말고 프로토콜을 봐야해요
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.
[bf8676f] 수정했습니다
recipeID: Int | ||
) { | ||
|
||
init(fetchRecipeDetailUseCase: FetchRecipeDetailUseCase, recipeID: Int) { |
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.
줄바꿈은 왜 사라졌죠?!
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.
[b583cae] 다시 적용했습니다
.subscribe(onSuccess: { [weak self] result in | ||
self?.delegate?.fetchedRecipe(result: result) | ||
}) |
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.
기존에 성공, 실패 모두 다뤘는데 성공밖에 안남은 것 같아요
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.
excute는 무조건 성공인가요?
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.
실패도 있습니다. 실패도 추가하겠습니다!
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.
[ef21ffe] 수정했습니다
@@ -13,12 +13,12 @@ final class RecipeDetailViewController: UIViewController { | |||
|
|||
private let contentView = RecipeDetailView() | |||
private let customNavigationBar = CustomNavigationBar() | |||
private let interactor: RecipeDetailInteractor | |||
private let interactor: RecipeDetailInteractorImpl |
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.
구현체 직접 보지 않도록 수정해주세요 (SOLID 원칙 생각해주세요)
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.
[a1b8b37] 수정했습니다
extension RecipeDetailViewController: Drawable { | ||
var viewController: UIViewController? { | ||
return self | ||
} |
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.
Drawble은 어디서 쓰는거에요?
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.
라우터에서 사용하는 것입니다!
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.
router에서 viewController를 들고있는게 아니라 Drawble을 들고있는거에요?
이 PR에서 라우팅 맥락은 없는 것 같은데 여기 커밋에서 추가하신 이유가 있을까요? 맥락에 안맞는 것 같아서요.
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.
router의 Drawble프로토콜이 viewcontroller를 반환 하게 정의해 두었습니다
맥락에 맞지 않는코드가 같이 올라간거 같아요 주의 하겠습니다
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.
이 PR에서는 제거해주세요~
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.
[433cc55] 제거 완료했습니다
Quality Gate passedIssues Measures |
RecipeDetailInteractor, RecipeListInteractor 의 ouput을 제거, 네이밍을 수정하였습니다.