marketingApi.js
1.73 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import api from '~/utils/request/request'
module.exports = {
/**
* 获取指定活动客户统计信息
*/
getSupermarketData(data) {
return api.post({
method: 'marketing.api.supermarket.customers.statistics',
...data,
// activityId: 10509 //开发调试用
})
},
/**
*获取指定活动客户列表
*/
getSupermarketCustomerList(data) {
return api.post({
method: 'marketing.api.supermarket.customers.page',
pageSize: 999999,
pageNum: 1,
...data
})
},
/**
* 获取活动客户标签列表
*/
getSupermarketTagList(data) {
return api.post({
method: 'marketing.api.supermarket.customers.listCustomerTags',
...data
})
},
/** 更新跟进结果*/
updateFollow(data) {
return api.post({
method: 'marketing.api.supermarket.customers.updateFollow',
...data
})
},
/**
*发起AI外呼
*/
invokeAICall(data) {
return api.post({
method: 'marketing.api.supermarket.bulge.invokeAICall',
...data
}, true)
},
/**
发送膨胀金短信 */
sendSms(data) {
return api.post({
method: 'marketing.api.supermarket.bulge.sendSms',
...data
}, true)
},
/**
* 通话详情
*/
getPhoneCallDetail(data) {
return api.post({
method: 'marketing.api.supermarket.customer.call.detail',
...data
}, true)
},
/** AI外呼任务添加客户 */
addAICallCustomer(data) {
return api.post({
method: 'marketing.api.supermarket.bulge.addAICallCustomer',
...data
}, true)
},
/** 批量发起AI外呼 */
batchInvokeAICall(data) {
return api.post({
method: 'marketing.api.supermarket.bulge.executeAICall',
...data
}, true)
}
}