lmw
2023-06-13 adf8013576cbdd12e5ebea8ff7e32baf5d558b27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.kuanzhai.user.network.entity
 
import com.kuanzhai.user.R
 
data class NewFunBean(
    val driverShow: Int = 0,
    val id: Int = 0,
    val type: Int = 0,
    val userShow: Int = 0
){
    fun getName() = when(type){//(1=招募,2=租车,3=买车,4=出租个人车辆,5=卖车,6=商家中心,7=打车卡)
        1->"招贤纳士"
        2->"我要租车"
        3->"我要买车"
        4->"出租我的车辆"
        5->"我要卖车"
        else->""
    }
 
    fun getImgRes() = when(type){
        1-> R.mipmap.zhaoxian
        2-> R.mipmap.zuche
        3-> R.mipmap.buy_car
        4-> R.mipmap.chuzu
        5-> R.mipmap.maiche
        else-> 0
    }
}