|
|
@@ -1,5 +1,6 @@
|
|
|
package com.grkj.data.enums
|
|
|
|
|
|
+import com.grkj.data.data.DictConstants
|
|
|
import com.grkj.data.model.res.CommonDictRes
|
|
|
import com.grkj.data.model.res.SimpleCommonDictRes
|
|
|
|
|
|
@@ -8,15 +9,15 @@ import com.grkj.data.model.res.SimpleCommonDictRes
|
|
|
*/
|
|
|
enum class CommonDictDataEnum(val dictKey: String, val commonDictRes: List<CommonDictRes>) {
|
|
|
SLOT_STATUS(
|
|
|
- "slot_status",
|
|
|
+ DictConstants.KEY_SLOT_STATUS,
|
|
|
listOf(SimpleCommonDictRes("可用", "0"), SimpleCommonDictRes("异常", "1"))
|
|
|
),
|
|
|
IS_OCCUPIED_STATUS(
|
|
|
- "isOccupied_status",
|
|
|
+ DictConstants.KEY_IS_OCCUPIED_STATUS,
|
|
|
listOf(SimpleCommonDictRes("是", "1"), SimpleCommonDictRes("否", "0"))
|
|
|
),
|
|
|
JOB_CARD_REASON(
|
|
|
- "job_card_reason",
|
|
|
+ DictConstants.KEY_JOB_CARD_REASON,
|
|
|
listOf(
|
|
|
SimpleCommonDictRes("工卡丢失", "0"),
|
|
|
SimpleCommonDictRes("工卡损坏", "1"),
|
|
|
@@ -24,33 +25,33 @@ enum class CommonDictDataEnum(val dictKey: String, val commonDictRes: List<Commo
|
|
|
)
|
|
|
),
|
|
|
PADLOCK_REASON(
|
|
|
- "padlock_reason", listOf(
|
|
|
+ DictConstants.KEY_PAD_LOCK_REASON, listOf(
|
|
|
SimpleCommonDictRes("挂锁损坏", "0"),
|
|
|
SimpleCommonDictRes("挂锁丢失", "1"),
|
|
|
SimpleCommonDictRes("-", "2")
|
|
|
)
|
|
|
),
|
|
|
PADLOCK_STATUS(
|
|
|
- "padlock_status", listOf(
|
|
|
+ DictConstants.KEY_PAD_LOCK_STATUS, listOf(
|
|
|
SimpleCommonDictRes("异常", "0"),
|
|
|
SimpleCommonDictRes("正常", "1"),
|
|
|
)
|
|
|
),
|
|
|
KEY_REASON(
|
|
|
- "key_reason", listOf(
|
|
|
+ DictConstants.KEY_KEY_REASON, listOf(
|
|
|
SimpleCommonDictRes("钥匙损坏", "0"),
|
|
|
SimpleCommonDictRes("钥匙丢失", "1"),
|
|
|
SimpleCommonDictRes("-", "2")
|
|
|
)
|
|
|
),
|
|
|
KEY_STATUS(
|
|
|
- "key_status", listOf(
|
|
|
+ DictConstants.KEY_KEY_STATUS, listOf(
|
|
|
SimpleCommonDictRes("异常", "0"),
|
|
|
SimpleCommonDictRes("正常", "1"),
|
|
|
)
|
|
|
),
|
|
|
SWITCH_STATUS(
|
|
|
- "switch_status", listOf(
|
|
|
+ DictConstants.KEY_SWITCH_STATUS, listOf(
|
|
|
SimpleCommonDictRes("关闭", "0"),
|
|
|
SimpleCommonDictRes("打开", "1"),
|
|
|
SimpleCommonDictRes("停止", "2"),
|
|
|
@@ -58,7 +59,7 @@ enum class CommonDictDataEnum(val dictKey: String, val commonDictRes: List<Commo
|
|
|
)
|
|
|
),
|
|
|
SLOT_TYPE(
|
|
|
- "slot_type", listOf(
|
|
|
+ DictConstants.KEY_SLOT_TYPE,listOf(
|
|
|
SimpleCommonDictRes("钥匙", "0"),
|
|
|
SimpleCommonDictRes("锁", "1"),
|
|
|
)
|