//
//  QSLGoodModel.swift
//  QuickSearchLocation
//
//  Created by Destiny on 2024/12/11.
//

import MoyaMapper
import SwiftyJSON

struct QSLGoodModel: Modelable {
    
    var goodId: Int = 0
    
    var appleGoodsId: String = ""
    
    var sort: Int = 0
    
    var name: String = ""
    
    var level: Int = 0
    
    var content: String = ""
    
    var originalAmount: CGFloat = 0.0
    
    var amount: CGFloat = 0.0
    
    var subscriptionMillis: Int = 0
    
    var tag: String = ""
    
    var popular: Bool = false
    
    var newcomer: Bool = false
    
    var isSelect: Bool = false
    
    mutating func mapping(_ json: JSON) {
        self.goodId = json["id"].intValue
        self.content = json["description"].stringValue
    }
}
