import { $clue } from '../index'; export default { /** * 查询线索清单 * @param {object} param0 * @returns */ getClue({ sTime, eTime, pageNum = 1, pageSize = 30 }) { return $clue.get(`clue/fetch`, { params: { sTime, eTime, pageNum, pageSize } }); // .then((res) => res.data); }, /** * 从第三方远程拉取线索清单 * @param {string} updateTime 更新时间,获取该时间之后的线索 * @returns */ fetchRemoteClue(updateTime) { return $clue .get(`clue/fetch/remote?updateTime=${updateTime}`) .then((res) => res.data); }, fetchRemoteClueFileUrl(clueId) { return `${$clue.defaults.baseURL}clue/fetch/remote/file?clueId=${clueId}`; }, /** * 推送线索的结论与问题 * @param {string} clueId * @returns */ pushClue(clueId) { return $clue .post(`clue/push?clueId=${clueId}`, {}) .then((res) => res.data); } };