generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from School-of-Company/377-school-list-api-co…
…nnecting 🔀 :: [#377] 학교 목록 - 학교 리스트 조회 기능 추가
- Loading branch information
Showing
5 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
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
11 changes: 9 additions & 2 deletions
11
App/Sources/Feature/SchoolListFeature/Source/SchoolListComponent.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import NeedleFoundation | ||
import SwiftUI | ||
import Service | ||
|
||
public protocol SchoolListDependency: Dependency {} | ||
public protocol SchoolListDependency: Dependency { | ||
var fetchSchoolListUseCase: any FetchSchoolListUseCase { get } | ||
} | ||
|
||
public final class SchoolListComponent: Component<SchoolListDependency>, SchoolListFactory { | ||
public func makeView() -> some View { | ||
SchoolListView(viewModel: .init()) | ||
SchoolListView( | ||
viewModel: .init( | ||
fetchSchoolListUseCase: dependency.fetchSchoolListUseCase | ||
) | ||
) | ||
} | ||
} |
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
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
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