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 #373 from School-of-Company/372-government-domain-…
…setting 🔀 :: [#372] government 도메인 세팅
- Loading branch information
Showing
19 changed files
with
542 additions
and
807 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) | ||
} | ||
} |
Oops, something went wrong.