-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
fb85f60
commit 67a0d5b
Showing
6 changed files
with
79 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// VerifyAuthCodeRequest.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/10/01. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct VerifyAuthCodeRequest: Encodable { | ||
let authKey: String | ||
let authCode: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// VerifyAuthCodeResponse.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/10/01. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct VerifyAuthCodeResponse: Decodable { | ||
let code: String | ||
let message: String | ||
let authToken: String | ||
} | ||
|
||
extension VerifyAuthCodeResponse { | ||
func toDomain() -> VerifyAuthCodeInfo { | ||
return .init( | ||
detailInfo: .init(code: self.code, message: self.message), | ||
authToken: self.authToken | ||
) | ||
} | ||
} |
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,14 @@ | ||
// | ||
// VerifyAuthCodeInfo.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/10/01. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct VerifyAuthCodeInfo { | ||
let detailInfo: TTResponseDetailInfo | ||
let authToken: String | ||
} |