-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
PingPong/Projects/Core/Domain/Model/Sources/Model/Bake/BakeModel.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// BakeModel.swift | ||
// Model | ||
// | ||
// Created by 서원지 on 11/5/23. | ||
// Copyright © 2023 Wonji Suh. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - Welcome | ||
public struct BakeModel: Codable { | ||
public let status: Int? | ||
public let data: BakeResponseModel? | ||
public let message: String? | ||
|
||
public init(status: Int?, data: BakeResponseModel?, message: String?) { | ||
self.status = status | ||
self.data = data | ||
self.message = message | ||
} | ||
} | ||
|
||
// MARK: - DataClass | ||
struct BakeResponseModel: Codable { | ||
public let regDttm, modDttm, regrID: String? | ||
public let regrNm: String? | ||
public let modrID: String | ||
public let modrNm: String? | ||
public let rmk: String? | ||
public let rowStatus: String? | ||
public let quoteID: Int? | ||
public let content, author, flavor, source: String? | ||
public let mood: String? | ||
public let likeYn: Bool? | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case regDttm, modDttm | ||
case regrID = "regrId" | ||
case regrNm | ||
case modrID = "modrId" | ||
case modrNm, rmk, rowStatus | ||
case quoteID = "quoteId" | ||
case content, author, flavor, source, mood, likeYn | ||
} | ||
|
||
public init(regDttm: String?, modDttm: String?, regrID: String?, regrNm: String?, modrID: String, modrNm: String?, rmk: String?, rowStatus: String?, quoteID: Int?, content: String?, author: String?, flavor: String?, source: String?, mood: String?, likeYn: Bool?) { | ||
self.regDttm = regDttm | ||
self.modDttm = modDttm | ||
self.regrID = regrID | ||
self.regrNm = regrNm | ||
self.modrID = modrID | ||
self.modrNm = modrNm | ||
self.rmk = rmk | ||
self.rowStatus = rowStatus | ||
self.quoteID = quoteID | ||
self.content = content | ||
self.author = author | ||
self.flavor = flavor | ||
self.source = source | ||
self.mood = mood | ||
self.likeYn = likeYn | ||
} | ||
} |
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