riku
2019-10-30 57b3b0851b2144073522a43640c2acc9452e1719
src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
@@ -1,5 +1,6 @@
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
@@ -21,7 +22,12 @@
    fun getDataStream(deviceCode: String, pageNum: Int?, pageSize: Int?, startTime: String?, endTime: String?): List<DataStreamVo>
    /**
     * 根据终端设备码获取最新经纬度
     * 根据终端设备码获取数据流数据计数
     */
    fun getCoordinate(deviceCode: String): LatLngVo
    fun getDataStreamCount(deviceCode: String, startTime: String?, endTime: String?): Int
    /**
     * 获取一辆车最新的一条状态信息
     */
    fun getLatestDataStream(deviceCode: String): DataStream?
}