package com.flightfeather.grid.service
|
|
import com.flightfeather.grid.constant.ConstantHttp
|
import com.flightfeather.grid.domain.ds1.entity.Clue
|
import com.flightfeather.grid.domain.ds1.entity.ClueInternal
|
import com.flightfeather.grid.utils.net.HttpMethod
|
import com.flightfeather.grid.vo.BaseResponse
|
import com.flightfeather.grid.vo.DataHead
|
|
interface ClueService {
|
|
/**
|
* 根据时间段获取线索
|
* @param sTime 起始时间
|
* @param eTime 结束时间
|
* @param pageNum 页码
|
* @param pageSize 单页数据量
|
*/
|
fun getClue(
|
sTime: String?,
|
eTime: String?,
|
pageNum: Int? = ConstantHttp.DEFAULT_PAGE_NUM,
|
pageSize: Int? = ConstantHttp.DEFAULT_PAGE_SIZE,
|
): Pair<DataHead, List<Clue?>>
|
|
fun searchClue(clue: Clue): List<Clue?>
|
|
/**
|
* 从远程数据源拉取下发线索
|
* @param updateTime 下发时间(每次查询大于此时间的数据)
|
*/
|
fun fetchRemoteClue(updateTime: String): List<Clue?>
|
|
fun getClueFile(clueId: String): Pair<String, HttpMethod.MyResponse>
|
|
fun pushClue(clueId: String): Boolean
|
}
|