From fb1dc85a9ae6a9b8426ec5e29eb0139933ebe233 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期日, 29 九月 2019 11:22:24 +0800
Subject: [PATCH] 新增接口: 1. 获取某设备某时间段的数据流个数

---
 src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt |   17 +++++++++++++++++
 1 files changed, 17 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 3270ce4..fb4570f 100644
--- a/src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
+++ b/src/main/kotlin/com/flightfeather/obd/repository/DataStreamRepository.kt
@@ -1,5 +1,7 @@
 package com.flightfeather.obd.repository
 
+import com.flightfeather.obd.lightshare.bean.DataStreamVo
+import com.flightfeather.obd.lightshare.bean.LatLngVo
 import com.flightfeather.obd.socket.bean.ObdPackageData
 
 /**
@@ -12,4 +14,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 getCoordinate(deviceCode: String): LatLngVo
 }
\ No newline at end of file

--
Gitblit v1.9.3