//
//  BsBannerModel.swift
//  BaiSiSMApp
//
//  Created by DAVID on 2022/11/16.
//  Copyright © 2022 www.davidhuang.com. All rights reserved.
//

import Foundation

class YHBannerModel: YHBaseModel {
    var name: String = ""
    var skip_url: String = ""
    var img_url: String = ""
    var type: Int = 0//banner 跳转类型：0-不跳转，1-跳转H5，2-跳转APP内Tab，3-跳转资讯页
    var create_at: String = ""
    var skip_type: Int = 0
    var id: Int = 0
    
    //是否为本地
    var isLocalItemFlag : Bool = false
    
    //
    static func localDefaultItem() -> YHBannerModel {
        let model = YHBannerModel()
        model.isLocalItemFlag = true
        model.img_url = "home_banner_default_icon"
        model.type = 0
        return model
    }
}
