-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DiaryEntity타입 생성 및 JSON파일 디코딩을 위한 메서드 구현
- Loading branch information
iOS-Yetti
committed
Aug 29, 2023
1 parent
93d6c80
commit 9c6dcf7
Showing
7 changed files
with
168 additions
and
12 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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
disabled_rules: | ||
- trailing_whitespace | ||
- line_length | ||
|
||
excluded: | ||
- Diary/Resource/AppDelegate.swift | ||
- Diary/Resource/SceneDelegate.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// DiaryEntity.swift | ||
// Diary | ||
// | ||
// Created by idinaloq, yetti on 2023/08/29. | ||
// | ||
|
||
struct DiaryEntity: Decodable { | ||
let title: String | ||
let body: String | ||
let createdAt: Int | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case title, body | ||
case createdAt = "created_at" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Diary/Resource/Assets.xcassets/sample.dataset/Contents.json
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,13 @@ | ||
{ | ||
"data" : [ | ||
{ | ||
"filename" : "sample.json", | ||
"idiom" : "universal", | ||
"universal-type-identifier" : "public.json" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.