Skip to content

Commit

Permalink
[feat] #177 PokitCard Shareable ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
Shareable: ๊ณต์œ ์ƒํƒœ ์ถ”์ ์šฉ ํ”„๋กœํ† ์ฝœ
  • Loading branch information
stealmh committed Jan 15, 2025
1 parent 013a3bf commit 85f6aba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Projects/DSKit/Sources/Components/PokitCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SwiftUI
import Util
import NukeUI

public struct PokitCard<Item: PokitCardItem>: View {
public struct PokitCard<Item: PokitCardItem & Shareable>: View {
private let category: Item
private let action: () -> Void
private let kebabAction: () -> Void
Expand Down
2 changes: 1 addition & 1 deletion Projects/Domain/Sources/Base/BaseCategoryItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

import Util

public struct BaseCategoryItem: Identifiable, Equatable, PokitSelectItem, PokitCardItem, Sortable {
public struct BaseCategoryItem: Identifiable, Equatable, PokitSelectItem, PokitCardItem, Sortable, Shareable {
public let id: Int
public let userId: Int
public let categoryName: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation

import CoreKit
import Util

public extension CategoryListInquiryResponse {
func toDomain() -> BaseCategoryListInquiry {
Expand Down
6 changes: 6 additions & 0 deletions Projects/Util/Sources/Protocols/PokitCardItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ public protocol CategoryImage {
var id: Int { get }
var imageURL: String { get }
}

public protocol Shareable {
var openType: BaseOpenType { get }
var keywordType: BaseInterestType { get }
var userCount: Int { get }
}

0 comments on commit 85f6aba

Please sign in to comment.