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
|
|
}
|