Skip to content

Commit

Permalink
⚡️ :: ProductList Response Model 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jangseoyoung committed Nov 22, 2021
1 parent 795b594 commit 60f61a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/Model/Networking/ProductList/ProductList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ 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
self.store_kind = store_kind
self.image_path = image_path
}
}

struct ProductList: Codable {
var products = [ProductResponse]()
}

0 comments on commit 60f61a0

Please sign in to comment.