Skip to content

Commit

Permalink
feat: 실습 데이터 모델(#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed Apr 27, 2024
1 parent 1bf731f commit e0a17eb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 34th-Sopt-Seminar/Week4/Model/SignUpRequestModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
//

import Foundation

struct SignUpRequestModel: Codable {
let authenticationId: String
let password: String
let nickname: String
let phone: String
}
5 changes: 5 additions & 0 deletions 34th-Sopt-Seminar/Week4/Model/SignUpResponseModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
//

import Foundation

struct SignUpResponseModel: Codable {
let code: Int
let message: String
}
12 changes: 12 additions & 0 deletions 34th-Sopt-Seminar/Week4/Model/UserInfoResponseModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@
//

import Foundation

// MARK: - UserInfoResponseModel
struct UserInfoResponseModel: Codable {
let code: Int
let message: String
let data: DataClass
}

// MARK: - DataClass
struct DataClass: Codable {
let authenticationId, nickname, phone: String
}

0 comments on commit e0a17eb

Please sign in to comment.