-
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 branch 'feature/DesingnQA' of https://github.com/DDD-Community/…
…OPeace into Release
- Loading branch information
Showing
130 changed files
with
8,412 additions
and
6,904 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
110 changes: 0 additions & 110 deletions
110
OPeace/Projects/Core/Networking/Model/Sources/Auth/CheckUserVerify.swift
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
OPeace/Projects/Core/Networking/Model/Sources/Auth/DeleteUser.swift
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
OPeace/Projects/Core/Networking/Model/Sources/Auth/OAuth/DTO/OAuthDTOModel.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,29 @@ | ||
// | ||
// OAuthDTOModel.swift | ||
// Model | ||
// | ||
// Created by Wonji Suh on 11/10/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct OAuthDTOModel: Codable, Equatable { | ||
public let data: OAuthReponseDTOModel | ||
|
||
public init( | ||
data: OAuthReponseDTOModel | ||
) { | ||
self.data = data | ||
} | ||
} | ||
|
||
public struct OAuthReponseDTOModel: Codable, Equatable { | ||
public let accessToken: String | ||
public let refreshToken: String | ||
|
||
|
||
public init(accessToken: String, refreshToken: String) { | ||
self.accessToken = accessToken | ||
self.refreshToken = refreshToken | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...cts/Core/Networking/Model/Sources/Auth/OAuth/Extension/Extension+AppleTokenResponse.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,18 @@ | ||
// | ||
// Extension+AppleTokenResponse.swift | ||
// Model | ||
// | ||
// Created by Wonji Suh on 11/10/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public extension AppleTokenResponse { | ||
func toOAuthDTOToModel() -> OAuthDTOModel { | ||
let data: OAuthReponseDTOModel = .init( | ||
accessToken: self.access_token ?? "", | ||
refreshToken: self.refresh_token ?? "") | ||
|
||
return OAuthDTOModel(data: data) | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...cts/Core/Networking/Model/Sources/Auth/OAuth/Extension/Extension+KakaoResponseModel.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,18 @@ | ||
// | ||
// Extension+KakaoResponseModel.swift | ||
// Model | ||
// | ||
// Created by Wonji Suh on 11/10/24. | ||
// | ||
|
||
public extension UserLoginModel { | ||
func toOAuthDTOModel() -> OAuthDTOModel { | ||
let data: OAuthReponseDTOModel = .init( | ||
accessToken: self.data?.accessToken ?? "", | ||
refreshToken: self.data?.refreshToken ?? "" | ||
) | ||
|
||
return OAuthDTOModel(data: data) | ||
} | ||
|
||
} |
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
Oops, something went wrong.