generallibrary/src/main/java/com/dayu/general/tool/CardOperationType.kt
@@ -12,6 +12,9 @@ object DeductCard : CardOperationType(5, "补扣") object CleanCard : CardOperationType(6, "清零卡") object CheckCard : CardOperationType(7, "检查卡") object ReturnCard : CardOperationType(8, "返还") object RegionCard : CardOperationType(9, "区域表号卡") object DebugCard : CardOperationType(10, "调试卡") companion object { fun fromCode(code: Int): CardOperationType? { @@ -23,6 +26,9 @@ 5 -> DeductCard 6 -> CleanCard 7 -> CheckCard 8 -> ReturnCard 9 -> RegionCard 10 -> DebugCard else -> null } }