-
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
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// UserDetailDTO.swift | ||
// Segno | ||
// | ||
// Created by 이예준 on 2022/11/30. | ||
// | ||
|
||
struct UserDetailDTO: Decodable { | ||
// TODO: 일단은 UserDetailItem과 동일하게 작성. 이후 서버 사이드에 따라 바꾸겠습니다. | ||
let identifier: String | ||
let nickname: String | ||
let writtenDiary: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case identifier = "_id" | ||
case nickname | ||
case writtenDiary = "diary" | ||
} | ||
|
||
#if DEBUG | ||
static let example = UserDetailDTO( | ||
identifier: "id", | ||
nickname: "test123", | ||
writtenDiary: "50000" | ||
) | ||
#endif | ||
} |