-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBaseContentItem.swift
More file actions
53 lines (49 loc) ยท 1.24 KB
/
BaseContentItem.swift
File metadata and controls
53 lines (49 loc) ยท 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// BaseContent.swift
// Domain
//
// Created by ๊น๋ํ on 7/31/24.
//
import Foundation
import Util
public struct BaseContentItem: Identifiable, Equatable, PokitLinkCardItem, Sortable {
public let id: Int
public let categoryName: String
public let categoryId: Int
public let title: String
public var memo: String?
public var thumbNail: String
public let data: String
public let domain: String
public let createdAt: String
public var isRead: Bool?
public var isFavorite: Bool?
public let keyword: String?
public init(
id: Int,
categoryName: String,
categoryId: Int,
title: String,
memo: String?,
thumbNail: String,
data: String,
domain: String,
createdAt: String,
isRead: Bool?,
isFavorite: Bool?,
keyword: String? = nil
) {
self.id = id
self.categoryName = categoryName
self.categoryId = categoryId
self.title = title
self.memo = memo
self.thumbNail = thumbNail
self.data = data
self.domain = domain
self.createdAt = createdAt
self.isRead = isRead
self.isFavorite = isFavorite
self.keyword = keyword
}
}