-
Notifications
You must be signed in to change notification settings - Fork 2
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
4d10d50
commit b9e9121
Showing
5 changed files
with
70 additions
and
1 deletion.
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
30 changes: 30 additions & 0 deletions
30
HMH_iOS/HMH_iOS/Network/DTO/AuthModel/SignUpRequestDTO.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,30 @@ | ||
// | ||
// SignUpRequestDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by Seonwoo Kim on 1/14/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SignUpRequestDTO: Codable { | ||
let socialPlatform: String | ||
let onboarding: Onboarding | ||
let challenge: Challenge | ||
} | ||
|
||
struct Onboarding: Codable { | ||
let averageUseTime: String | ||
let problem: [String] | ||
} | ||
|
||
struct Challenge: Codable { | ||
let period: Int | ||
let goalTime: Int | ||
let apps: [Apps] | ||
} | ||
|
||
struct Apps: Codable { | ||
let appCode: String | ||
let goalTime: Int | ||
} |
20 changes: 20 additions & 0 deletions
20
HMH_iOS/HMH_iOS/Network/DTO/AuthModel/SignUpResponseDTO.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,20 @@ | ||
// | ||
// SignUpResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by Seonwoo Kim on 1/14/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SignUpResponseDTO: Codable { | ||
let userId: Int | ||
let accessToken: String | ||
let refreshToken: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case userId = "userId" | ||
case accessToken = "accessToken" | ||
case refreshToken = "refreshToken" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
HMH_iOS/HMH_iOS/Presentation/Onboarding/Models/SignUpManager.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// SignInModel.swift | ||
// SignUpManager.swift | ||
// HMH_iOS | ||
// | ||
// Created by Seonwoo Kim on 1/9/24. | ||
|