package com.yidianling.consultant.model.bean

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.google.gson.annotations.SerializedName

data class CateItem(

    @field:SerializedName("cate_name")
    var cateName: String? = null,

    @field:SerializedName("cate_id")
    var cateId: String? = null,

    @field:SerializedName("children")
    var children: ArrayList<ChildrenBean>?=null
)

data class ChildrenBean(var cate_name: String,var cate_id:String,var isVisible: Boolean, var type: Int): MultiItemEntity {
//    @field:SerializedName("cate_name")
//    var cateName: String? = null,

//    @field:SerializedName("cate_id")
//    var cateId: String? = null,

//    var isVisible: Boolean = false // 是否显示
    var isSelected: Boolean = false // 是否选中

    override fun getItemType(): Int {
        return type
    }
}