123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- //
- // ProductModel.swift
- // Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport
- import Foundation
- import ObjectMapper
- class ProductModel : NSObject, Mappable{
- var attributeCategoryId : Int?
- var bigImg : String?
- var categoryId1 : Int?
- var categoryId2 : Int?
- var categoryId3 : Int?
- var cityId : Int?
- var commentNumber : Int?
- var commentScore : Int?
- var commentStar : String?
- var createdAt : String?
- var deletedAt : String?
- var deliverType : Int?
- var desc : String?
- var id : Int?
- var img : String?
- var isConfirmSale : Int?
- var isMain : Int?
- var limitNumber : Int?
- var limitType : String?
- var name : String?
- var originPrice : Int?
- var otherCode : String?
- var price : Int?
- var receiveTime : String?
- var receiveType : Int?
- var saleName : String?
- var saleStatus : Int?
- var shopId : Int?
- var shopName : String?
- var skuCode : String?
- var skuId : Int?
- var skuName : String?
- var sort : Int?
- var spuCode : String?
- var status : Int?
- var stock : Int?
- var storeTypeIds : String?
- var subtitle : String?
- var totalCount : Int?
- var totalStock : Int?
- var upStatus : Int?
- var updatedAt : String?
- var video : String?
- var wasteStatus : Int?
-
-
- // 购物车
- var cityName : String?
- var amount : Int?
- var isSelect : Int?
- var productId : Int?
- var productImg : String?
- var productName : String?
- var productPrice : Int?
- var skuPrice : Int?
- var uid : Int?
-
- // 购物车Id
- var cartId : Int?
- class func newInstance(map: Map) -> Mappable?{
- return ProductModel()
- }
- required init?(map: Map){}
- override init(){}
- func mapping(map: Map)
- {
- attributeCategoryId <- map["attribute_category_id"]
- bigImg <- map["big_img"]
- categoryId1 <- map["category_id1"]
- categoryId2 <- map["category_id2"]
- categoryId3 <- map["category_id3"]
- cityId <- map["city_id"]
- commentNumber <- map["comment_number"]
- commentScore <- map["comment_score"]
- commentStar <- map["comment_star"]
- createdAt <- map["created_at"]
- deletedAt <- map["deleted_at"]
- deliverType <- map["deliver_type"]
- desc <- map["desc"]
- id <- map["id"]
- img <- map["img"]
- isConfirmSale <- map["is_confirm_sale"]
- isMain <- map["is_main"]
- limitNumber <- map["limit_number"]
- limitType <- map["limit_type"]
- name <- map["name"]
- originPrice <- map["origin_price"]
- otherCode <- map["other_code"]
- price <- map["price"]
- receiveTime <- map["receive_time"]
- receiveType <- map["receive_type"]
- saleName <- map["sale_name"]
- saleStatus <- map["sale_status"]
- shopId <- map["shop_id"]
- shopName <- map["shop_name"]
- skuCode <- map["sku_code"]
- skuId <- map["sku_id"]
- skuName <- map["sku_name"]
- sort <- map["sort"]
- spuCode <- map["spu_code"]
- status <- map["status"]
- stock <- map["stock"]
- storeTypeIds <- map["store_type_ids"]
- subtitle <- map["subtitle"]
- totalCount <- map["total_count"]
- totalStock <- map["total_stock"]
- upStatus <- map["up_status"]
- updatedAt <- map["updated_at"]
- video <- map["video"]
- wasteStatus <- map["waste_status"]
- // 购物车
- amount <- map["amount"]
- isSelect <- map["is_select"]
- productId <- map["product_id"]
- productImg <- map["product_img"]
- productName <- map["product_name"]
- productPrice <- map["product_price"]
- skuPrice <- map["sku_price"]
- uid <- map["uid"]
-
- }
- }
|