riku
2019-10-30 57b3b0851b2144073522a43640c2acc9452e1719
src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
@@ -1,5 +1,8 @@
package com.flightfeather.obd.repository
import com.flightfeather.obd.domain.entity.DataStream
import com.flightfeather.obd.lightshare.bean.DataStreamVo
import com.flightfeather.obd.lightshare.bean.LatLngVo
import com.flightfeather.obd.socket.bean.ObdPackageData
/**
@@ -12,4 +15,19 @@
     * 保存 实时信息或补传信息 中的 数据流信息 和 补充数据流
     */
    fun saveDataStream(packageData: ObdPackageData): Boolean
    /**
     * 根据终端设备码获取数据流数据
     */
    fun getDataStream(deviceCode: String, pageNum: Int?, pageSize: Int?, startTime: String?, endTime: String?): List<DataStreamVo>
    /**
     * 根据终端设备码获取数据流数据计数
     */
    fun getDataStreamCount(deviceCode: String, startTime: String?, endTime: String?): Int
    /**
     * 获取一辆车最新的一条状态信息
     */
    fun getLatestDataStream(deviceCode: String): DataStream?
}