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
| package cn.flightfeather.supervision.domain.enumeration
|
| enum class SceneType(val value: Int, val des: String) {
| NoType(0, "无类型"),
| Restaurant(1, "餐饮"),
| Construction(2, "工地"),
| Wharf(3, "码头"),
| StorageYard(4, "堆场"),
| MixingPlant(5, "搅拌站"),
| Industrial(6, "工业企业"),
| VehicleRepair(7, "汽修");
|
| companion object {
| fun getNameByValue(value: Int): String = when (value) {
| 0 -> NoType.des
| 1 -> Restaurant.des
| 2 -> Construction.des
| 3 -> Wharf.des
| 4 -> StorageYard.des
| 5 -> MixingPlant.des
| 6 -> Industrial.des
| 7 -> VehicleRepair.des
| else -> NoType.des
| }
| }
| }
|
|