From 49d305e01995dbc6b7d538c86b08e875ede3781a Mon Sep 17 00:00:00 2001 From: Roy-wonji Date: Mon, 6 Nov 2023 23:08:20 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9B[chore]=20:=20=20=EB=AA=A8=EB=93=88?= =?UTF-8?q?=20=EB=B6=84=EB=A6=AC=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Domain/Model/Sources/Model/Archive/ArchiveModel.swift | 5 ++++- .../Feature/Archive/Sources/UI/View/ArchiveView.swift | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/ArchiveModel.swift b/PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/ArchiveModel.swift index adf1071d..fbb2f450 100644 --- a/PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/ArchiveModel.swift +++ b/PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/ArchiveModel.swift @@ -36,6 +36,7 @@ public struct ArchiveResponseModel: Codable { public let flavor: String? public let source: String? public let mood: String? + public let likeID: Int? enum CodingKeys: String, CodingKey { case regDttm, modDttm @@ -45,9 +46,10 @@ public struct ArchiveResponseModel: Codable { case modrNm, rmk, rowStatus case quoteID = "quoteId" case content, author, flavor, source, mood + case likeID = "likeId" } - 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?) { + 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?, likeID: Int?) { self.regDttm = regDttm self.modDttm = modDttm self.regrID = regrID @@ -62,5 +64,6 @@ public struct ArchiveResponseModel: Codable { self.flavor = flavor self.source = source self.mood = mood + self.likeID = likeID } } diff --git a/PingPong/Projects/Feature/Archive/Sources/UI/View/ArchiveView.swift b/PingPong/Projects/Feature/Archive/Sources/UI/View/ArchiveView.swift index 8c75a831..7f83b0df 100644 --- a/PingPong/Projects/Feature/Archive/Sources/UI/View/ArchiveView.swift +++ b/PingPong/Projects/Feature/Archive/Sources/UI/View/ArchiveView.swift @@ -142,7 +142,7 @@ public struct ArchiveView: View { hashtags: hashTags, image: "", title: quoteContent.content ?? "", sources: quoteContent.author ?? "", - isBookrmark: false) + isBookrmark: quoteContent.likeID != nil ) archiveViewViewModel.bookmarkCards.append(card) } }