import { $clue } from '../index';
|
|
export default {
|
/**
|
* 获取线索结论
|
* @param {string} clueId 线索id
|
*/
|
getConclusion(clueId) {
|
return $clue.get(`clue/conclusion/fetch?clueId=${clueId}`).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);
|
}
|
};
|