src/main/kotlin/com/flightfeather/uav/socket/eunm/UWDeviceType.kt
@@ -6,6 +6,7 @@ enum class UWDeviceType(val value: String, val des: String) { UAV("0b", "无人机设备"), VEHICLE("0a", "车载设备"), BOAT("0c", "无人船"), GRID("0d", "网格化设备"); companion object { @@ -15,6 +16,7 @@ fun getType(deviceCode: String?): UWDeviceType? = when (deviceCode?.substring(0, 2)) { UAV.value -> UAV VEHICLE.value -> VEHICLE BOAT.value -> BOAT GRID.value -> GRID else -> null }