clues.ts
2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* 线索管理 —— 源 src/api/usedCarManagement.js 的同名接口,路径 / method 逐字保留。
*
* 请求统一经 ../core/client 的 @uj/api-core 装配后由主壳 props.request 代发;
* 源系统没有 DTO 定义,这里不臆造结构:参数是一层平铺对象,返回类型由调用方泛型指定。
*/
import { usedcarClient } from '../core/client';
import type { UsedcarParams } from '../core/types';
/**
* 线索管理 - 分页查询线索列表
*/
export function getClueManagePage<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/page', data);
}
/**
* 线索管理 - 分页获取线索门店列表数据
*/
export function getShopMerchantList<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/merchantPage', data);
}
/**
* 线索管理 - 获取线索状态统计数据
*/
export function getClueManageStats<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/statusCount', data);
}
/**
* 线索管理 - 获取跟进状态统计数据
*/
export function getClueManageFollowUpStats<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/followTimeStatusCount', data);
}
/**
* 线索管理 - 查询线索详情
*/
export function getClueManageDetail<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/detail', data);
}
/**
* 线索管理 - 获取跟进记录列表
*/
export function getClueManageFollowRecordList<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/followRecord/list', data);
}
/**
* 线索管理 - 获取线索操作日志列表
*/
export function getClueManageLogList<T = unknown>(data: UsedcarParams = {}) {
return usedcarClient.post<T>('/clues/operationLog/list', data);
}
/** 模块单例出口,与 dashboardApi 同一调用面;实现与上方具名函数完全同源。 */
export const cluesApi = {
getClueManagePage,
getShopMerchantList,
getClueManageStats,
getClueManageFollowUpStats,
getClueManageDetail,
getClueManageFollowRecordList,
getClueManageLogList,
};