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
45 changed files
with
846 additions
and
104 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
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
4 changes: 4 additions & 0 deletions
4
Projects/Domain/AuthenticationDomain/Interface/DI/AuthenticationDomainBuildable.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,4 @@ | ||
public protocol AuthenticationDomainBuildable { | ||
var fetchAuthenticationFormUseCase: any FetchAuthenticationFormUseCase { get } | ||
var inputAuthenticationUseCase: any InputAuthenticationUseCase { get } | ||
} |
34 changes: 34 additions & 0 deletions
34
...cts/Domain/AuthenticationDomain/Interface/DTO/Request/InputAuthenticationRequestDTO.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,34 @@ | ||
import Foundation | ||
|
||
public struct InputAuthenticationRequestDTO: Encodable { | ||
public let contents: [Content] | ||
|
||
public init(contents: [Content]) { | ||
self.contents = contents | ||
} | ||
} | ||
|
||
public struct Content: Encodable { | ||
public let sectionID: String | ||
public let objects: [Object] | ||
|
||
public init(sectionID: String, objects: [Object]) { | ||
self.sectionID = sectionID | ||
self.objects = objects | ||
} | ||
} | ||
|
||
// MARK: - Object | ||
public struct Object: Encodable { | ||
public let fieldID: String | ||
public let sectionType: FieldType | ||
public let value: String | ||
public let selectID: String | ||
|
||
public init(fieldID: String, sectionType: FieldType, value: String, selectID: String) { | ||
self.fieldID = fieldID | ||
self.sectionType = sectionType | ||
self.value = value | ||
self.selectID = selectID | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...cts/Domain/AuthenticationDomain/Interface/DataSource/RemoteAuthenticationDataSource.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,7 @@ | ||
import Foundation | ||
|
||
public protocol RemoteAuthenticationDataSource { | ||
func fetchAuthenticationForm(uuid: String) async throws -> AuthenticationFormEntity | ||
|
||
func inputAuthentication(uuid: String, req: InputAuthenticationRequestDTO) async throws | ||
} |
31 changes: 31 additions & 0 deletions
31
Projects/Domain/AuthenticationDomain/Interface/Entity/AuthenticationFormEntity.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,31 @@ | ||
import Foundation | ||
|
||
public struct AuthenticationFormEntity { | ||
public let files: [File] | ||
public let areas: [Area] | ||
|
||
public init(files: [File], areas: [Area]) { | ||
self.files = files | ||
self.areas = areas | ||
} | ||
} | ||
|
||
extension AuthenticationFormEntity { | ||
public struct Area { | ||
public let title: String | ||
public let sections: [SectionEntity] | ||
public init(title: String, sections: [SectionEntity]) { | ||
self.title = title | ||
self.sections = sections | ||
} | ||
} | ||
|
||
public struct File { | ||
public let name: String | ||
public let url: String | ||
public init(name: String, url: String) { | ||
self.name = name | ||
self.url = url | ||
} | ||
} | ||
} |
Oops, something went wrong.