//
//  DiyStickerModel.swift
//  AIEmoji
//
//  Created by 100Years on 2025/1/20.
//
import ObjectMapper


class DiyStickerCategory: TSBaseModel {
    var id: String?
    var name: String?
    var imageUrl: String?
    var stickers: [DiyStickerModel] = []
    
    override func mapping(map: Map) {
        id                  <- map["id"]
        imageUrl            <- map["imageUrl"]
        name                <- map["name"]
        stickers            <- map["stickers"]
    }
}

class DiyStickerModel: TSBaseModel {
    var id: String?
    var imageUrl: String?
    var name: String?
    // TODO: 优先级: 值越大, 添加时, 视图层级越靠上
    var priority: Int = 0
    
    var isVip: Bool = false
    var currentView:UIView?
    override func mapping(map: Map) {
        id                  <- map["id"]
        imageUrl            <- map["imageUrl"]
        name                <- map["name"]
        isVip               <- map["isVip"]
    }
}
