import { $clue } from '../index'; export default { /** * 获取线索结论 * @param {string} clueId 线索id */ getConclusion(clueId, internal) { return $clue .get(`clue/conclusion/fetch`, { params: { clueId, internal } }) .then((res) => res.data); }, /** * 提交线索结论 * @param {object} conclusion 线索 * @returns */ uploadConclusion(conclusion) { return $clue .post(`clue/conclusion/upload`, conclusion) .then((res) => res.data); }, /** * 推送线索结论至第三方 * @param {Array} conclusionIdList 线索id集合 * @returns */ pushConclusion(conclusionIdList) { return $clue .post(`clue/conclusion/push`, conclusionIdList) .then((res) => res.data); } };