Skip to content

Commit

Permalink
Merge pull request #260 from MaeumgaGym/feature/#259-postureFlow
Browse files Browse the repository at this point in the history
🔀 :: [#259] 자세 - lint 에러 수정
  • Loading branch information
Eunho0922 authored Feb 28, 2024
2 parents ba628ef + 139341a commit 5fdf47c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class PostureDetailViewController: BaseViewController<PostureDetailViewMo
super.bindViewModel()

let useCase = DefaultPostureUseCase(repository: PostureRepository(networkService: PostureService()))

viewModel = PostureDetailViewModel(useCase: useCase)

let input = PostureDetailViewModel.Input(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public class PostureSearchViewController: BaseViewController<PostureSearchViewMo
super.bindViewModel()

let useCase = DefaultPostureUseCase(repository: PostureRepository(networkService: PostureService()))

viewModel = PostureSearchViewModel(useCase: useCase)

let input = PostureSearchViewModel.Input(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public class PostureBackViewController: BaseViewController<PostureBackViewModel>
.asDriver(onErrorDriveWith: .never())

let useCase = DefaultPostureUseCase(repository: PostureRepository(networkService: PostureService()))

viewModel = PostureBackViewModel(useCase: useCase)

let input = PostureBackViewModel.Input(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public class PostureChestViewController: BaseViewController<PostureChestViewMode
.asDriver(onErrorDriveWith: .never())

let useCase = DefaultPostureUseCase(repository: PostureRepository(networkService: PostureService()))

viewModel = PostureChestViewModel(useCase: useCase)

let input = PostureChestViewModel.Input(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ public class PostureRecommandViewController: BaseViewController<PostureRecommand
$0.width.equalToSuperview()
}
}

public override func bindViewModel() {
super.bindViewModel()

let useCase = DefaultPostureUseCase(repository: PostureRepository(networkService: PostureService()))

viewModel = PostureRecommandViewModel(useCase: useCase)

let input = PostureRecommandViewModel.Input(
getRecommandData:
Observable.just(())
.asDriver(onErrorDriveWith: .never())
)

let output = viewModel.transform(input, action: { output in
output.recommandData
.subscribe(onNext: { recommandData in
Expand Down

0 comments on commit 5fdf47c

Please sign in to comment.