Skip to content

Commit

Permalink
🪛[chore] : 모듈 분리 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-wonji committed Nov 6, 2023
1 parent 6d6c010 commit 49d305e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -62,5 +64,6 @@ public struct ArchiveResponseModel: Codable {
self.flavor = flavor
self.source = source
self.mood = mood
self.likeID = likeID
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 49d305e

Please sign in to comment.