migration
This commit is contained in:
32
PediFoods/Views/Main/StoreDetailPizzaSupport.swift
Normal file
32
PediFoods/Views/Main/StoreDetailPizzaSupport.swift
Normal file
@@ -0,0 +1,32 @@
|
||||
import Foundation
|
||||
|
||||
struct StoreCatalogListItem: Identifiable {
|
||||
let id: String
|
||||
let product: StoreCatalogProduct
|
||||
let title: String
|
||||
let description: String?
|
||||
let imageURL: String?
|
||||
let isPizzaSummary: Bool
|
||||
let pizzaCategoryId: String?
|
||||
let pizzaProductIds: [String]
|
||||
|
||||
init(
|
||||
id: String,
|
||||
product: StoreCatalogProduct,
|
||||
title: String,
|
||||
description: String?,
|
||||
imageURL: String?,
|
||||
isPizzaSummary: Bool = false,
|
||||
pizzaCategoryId: String? = nil,
|
||||
pizzaProductIds: [String] = []
|
||||
) {
|
||||
self.id = id
|
||||
self.product = product
|
||||
self.title = title
|
||||
self.description = description
|
||||
self.imageURL = imageURL
|
||||
self.isPizzaSummary = isPizzaSummary
|
||||
self.pizzaCategoryId = pizzaCategoryId
|
||||
self.pizzaProductIds = pizzaProductIds
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user