Skip to content

Commit

Permalink
refactor: BookCover 모델 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Nov 25, 2024
1 parent d78fe38 commit fa688a9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions MemorialHouse/MHDomain/MHDomain/Entity/BookCover.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import MHFoundation

public struct BookCover: Equatable, Sendable {
public let identifier = UUID()
public let identifier: UUID
public let title: String
public let imageURL: String
public let imageURL: String?
public let color: BookColor
public let category: String
public let category: String?
public let favorite: Bool

public init(
identifier: UUID = .init(),
title: String,
imageURL: String,
imageURL: String?,
color: BookColor,
category: String,
category: String?,
favorite: Bool = false
) {
self.identifier = identifier
self.title = title
self.imageURL = imageURL
self.color = color
Expand Down

0 comments on commit fa688a9

Please sign in to comment.