-
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.
Browse files
Browse the repository at this point in the history
[feat] 제네릭 ResponseBodyDTO 구현 및 EmptyModel 구현
- Loading branch information
Showing
8 changed files
with
170 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
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,8 @@ | ||
// | ||
// AuthTemp.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation |
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,10 @@ | ||
// | ||
// EmptyModel.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct EmptyModel: Codable {} |
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,8 @@ | ||
// | ||
// MeetingsTemp.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation |
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,8 @@ | ||
// | ||
// PromisesTemp.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation |
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,8 @@ | ||
// | ||
// UsersTemp.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation |
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,8 @@ | ||
// | ||
// UtilsTemp.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation |
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 @@ | ||
// | ||
// ResponseBodyDTO.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/8/24. | ||
// | ||
|
||
import Foundation | ||
|
||
/// 제네릭 ResponseBody 구조체 정의 | ||
struct ResponseBodyDTO<T: Codable>: Codable { | ||
let data: T? | ||
let error: ErrorResponse? | ||
} | ||
|
||
/// 에러 응답 구조체 정의 | ||
struct ErrorResponse: Codable { | ||
let code: Int | ||
let message: String | ||
} |