riku
2019-09-17 2bf337ab074f1c047c4f4e4df29ed994d3decaf1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.flightfeather.obd.repository
 
import com.flightfeather.obd.domain.entity.ObdData
import com.flightfeather.obd.domain.mapper.ObdDataMapper
import com.flightfeather.obd.lightshare.bean.ObdDataVo
import com.flightfeather.obd.socket.bean.ObdPackageData
import org.springframework.beans.BeanUtils
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
 
/**
 * obd数据相关数据库操作接口
 * @author riku
 * Date: 2019/8/27
 */
interface ObdDataRepository {
 
    /**
     * 存储obd数据
     */
    fun saveObdData(data: ObdDataVo): Boolean
 
    /**
     * 通过汽车vin码获取最新数据
     */
    fun getDataByVinCode(vinCode: String, pageNum: Int?, pageSize: Int?): MutableList<ObdDataVo>
 
    fun saveObdData(packageData: ObdPackageData):Boolean
 
}