From 60f61a037f838b9884bc5da94e8dd8767cab275b Mon Sep 17 00:00:00 2001 From: jangseoyoung Date: Mon, 22 Nov 2021 09:40:13 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20ProductList=20Respons?= =?UTF-8?q?e=20Model=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/Networking/ProductList/ProductList.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Model/Networking/ProductList/ProductList.swift b/Sources/Model/Networking/ProductList/ProductList.swift index a6bd413..dd783f4 100644 --- a/Sources/Model/Networking/ProductList/ProductList.swift +++ b/Sources/Model/Networking/ProductList/ProductList.swift @@ -12,10 +12,10 @@ struct ProductResponse: Codable { var productId = Int() var name = String() var price = String() - var store_kind = String() + var store_kind = [String]() var image_path = String() - init(productId: Int, name: String, price: String, store_kind: String, image_path: String) { + init(productId: Int, name: String, price: String, store_kind: [String], image_path: String) { self.productId = productId self.name = name self.price = price @@ -23,3 +23,7 @@ struct ProductResponse: Codable { self.image_path = image_path } } + +struct ProductList: Codable { + var products = [ProductResponse]() +}