Skip to content

Commit

Permalink
[Feat] sopt-makers#57 - 비밀번호 변경 뷰를 ModuleFactory에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Dec 26, 2022
1 parent 50e7393 commit 7a37171
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ public protocol ModuleFactoryInterface {
func makeAlertVC(title: String, customButtonTitle: String) -> AlertVC
func makeRankingVC() -> RankingVC
func makeSettingVC() -> SettingVC
func makePasswordChangeVC() -> PasswordChangeVC
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ extension ModuleFactory: ModuleFactoryInterface {
settingVC.viewModel = viewModel
return settingVC
}

public func makePasswordChangeVC() -> PasswordChangeVC {
let repository = SettingRepository(service: authService)
let useCase = DefaultPasswordChangeUseCase(repository: repository)
let viewModel = PasswordChangeViewModel(useCase: useCase)
let passwordChangeVC = PasswordChangeVC()
passwordChangeVC.factory = self
passwordChangeVC.viewModel = viewModel
return passwordChangeVC
}
}

0 comments on commit 7a37171

Please sign in to comment.