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.
- Loading branch information
Showing
59 changed files
with
807 additions
and
69 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
28 changes: 28 additions & 0 deletions
28
App/Sources/Application/DI/Government/AppComponent+Government.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import NeedleFoundation | ||
import Service | ||
|
||
public extension AppComponent { | ||
var remoteGovernmentDataSource: any RemoteGovernmentDataSource { | ||
shared { | ||
RemoteGovernmentDataSourceImpl(keychain: keychain) | ||
} | ||
} | ||
|
||
var governmentRepository: any GovernmentRepository { | ||
shared { | ||
GovernmentRepositoryImpl(remoteGovernmentDataSource: remoteGovernmentDataSource) | ||
} | ||
} | ||
|
||
var fetchGovernmentListUseCase: any FetchGovernmentListUseCase { | ||
FetchGovernmentUseCaseImpl(governmentRepository: governmentRepository) | ||
} | ||
|
||
var createdGovernmentUseCase: any CreatedGovernmentUseCase { | ||
CreatedGovernmentUseCaseImpl(governmentRepository: governmentRepository) | ||
} | ||
|
||
var deleteGovernmentUseCase: any DeleteGovernmentUseCase { | ||
DeleteGovernmentUseCaseImpl(governmentRepository: governmentRepository) | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
App/Sources/Application/DI/University/AppComponent+University.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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import NeedleFoundation | ||
import Service | ||
|
||
public extension AppComponent { | ||
var remoteUniversityDataSource: any RemoteUniversityDataSource { | ||
shared { | ||
RemoteUniversityDataSourceImpl(keychain: keychain) | ||
} | ||
} | ||
|
||
var universityRepository: any UniversityRepository { | ||
shared { | ||
UniversityRepositoryImpl(remoteUniversityDataSource: remoteUniversityDataSource) | ||
} | ||
} | ||
|
||
var fetchUniversityListUseCase: any FetchUniversityListUseCase { | ||
shared { | ||
FetchUniversityListUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
|
||
var createdUniversityUseCase: any CreatedUniversityUseCase { | ||
shared { | ||
CreatedUniversityUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
|
||
var modifyUniversityUseCase: any ModifyUniversityUseCase { | ||
shared { | ||
ModifyUniversityUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
|
||
var deleteUniversityUseCase: any DeleteUniversityUseCase { | ||
shared { | ||
DeleteUniversityUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
|
||
var createdDepartmentUseCase: any CreatedDepartmentUseCase { | ||
shared { | ||
CreatedDepartmentUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
|
||
var deleteDepartmentUseCase: any DeleteDepartmentUseCase { | ||
shared { | ||
DeleteDepartmentUseCaseImpl(universityRepository: universityRepository) | ||
} | ||
} | ||
} |
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
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
File renamed without changes.
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
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 |
---|---|---|
|
@@ -13,4 +13,3 @@ final class GovernmentListViewModel: BaseViewModel { | |
selectedPage = page | ||
} | ||
} | ||
|
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
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
Oops, something went wrong.