From 1f356649ce536b19b903d6f3a533983d4b8222bc Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 25 十月 2019 18:16:39 +0800
Subject: [PATCH] 新增接口: 1. 获取所有设备的最新一条数据 新增数据库表: 1. 车辆信息表

---
 src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt b/src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
index 45a2dcb..2e3bf1c 100644
--- a/src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
+++ b/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,17 @@
     fun getDataStream(deviceCode: String, pageNum: Int?, pageSize: Int?, startTime: String?, endTime: String?): List<DataStreamVo>
 
     /**
+     * 鏍规嵁缁堢璁惧鐮佽幏鍙栨暟鎹祦鏁版嵁璁℃暟
+     */
+    fun getDataStreamCount(deviceCode: String, startTime: String?, endTime: String?): Int
+
+    /**
      * 鏍规嵁缁堢璁惧鐮佽幏鍙栨渶鏂扮粡绾害
      */
     fun getCoordinate(deviceCode: String): LatLngVo
+
+    /**
+     * 鑾峰彇涓�杈嗚溅鏈�鏂扮殑涓�鏉$姸鎬佷俊鎭�
+     */
+    fun getLatestDataStream(deviceCode: String): DataStream?
 }
\ No newline at end of file

--
Gitblit v1.9.3