-
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
12 changed files
with
173 additions
and
14 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
16 changes: 16 additions & 0 deletions
16
project/Projects/Data/ConcreteRepository/DTO/CenterRegistrationDTO.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,16 @@ | ||
// | ||
// CenterRegistrationDTO.swift | ||
// ConcreteRepository | ||
// | ||
// Created by choijunios on 7/9/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct CenterRegistrationDTO: Encodable { | ||
let identifier: String | ||
let password: String | ||
let phoneNumber: String | ||
let managerName: String | ||
let centerBusinessRegistrationNumber: String | ||
} |
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
38 changes: 38 additions & 0 deletions
38
project/Projects/Domain/Entity/State/Auth/CenterRegisterState.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,38 @@ | ||
// | ||
// CenterRegisterState.swift | ||
// Entity | ||
// | ||
// Created by choijunios on 7/9/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public class CenterRegisterState { | ||
public var name: String? | ||
public var phoneNumber: String? | ||
public var businessNumber: String? | ||
public var id: String? | ||
public var password: String? | ||
|
||
public init( | ||
name: String? = nil, | ||
phoneNumber: String? = nil, | ||
businessNumber: String? = nil, | ||
id: String? = nil, | ||
password: String? = nil | ||
) { | ||
self.name = name | ||
self.phoneNumber = phoneNumber | ||
self.businessNumber = businessNumber | ||
self.id = id | ||
self.password = password | ||
} | ||
|
||
public func clear() { | ||
name = nil | ||
phoneNumber = nil | ||
businessNumber = nil | ||
id = nil | ||
password = nil | ||
} | ||
} |
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