Skip to content

Commit

Permalink
close #138 feat: UserDetailDTO 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
rudah7 committed Nov 30, 2022
1 parent 51dc194 commit 3623d2d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Segno/Segno/Data/Repository/DTO/UserDetailDTO.swift
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
}

0 comments on commit 3623d2d

Please sign in to comment.