voice.js
1.98 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import {
GlAxios
} from 'glsx-vue-common'
const path = '/admin-ddh-aimanager'
const __sVoiceList = `${path}/voice/activity/search`
const __sGetManufacturer = `${path}/manufacturer/search`
const __sGetMerchant = `${path}/merchant/search`
const __sAdd = `${path}/voice/activity/add`
const __sMerge = `${path}/voice/activity/merge`
const __sSearch = `${path}/voice/activity/get`
const __sCouponSearch = `${path}/coupon/search`
/**
* 获取语音活动列表
*/
const voiceList = {
p: [__sVoiceList],
req: params => GlAxios.post(__sVoiceList, params, {
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
requestType: 'jsonString'
})
}
/**
* 获取品牌厂商
*/
const manufacturers = {
p: [__sGetManufacturer],
req: params => GlAxios.post(__sGetManufacturer, params, {
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
requestType: 'jsonString'
})
}
/**
* 获取渠道商户
*/
const merchants = {
p: [__sGetMerchant],
req: params => GlAxios.post(__sGetMerchant, params, {
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
requestType: 'jsonString'
})
}
/**
* 添加语音活动
*/
const addActivity = {
p: [__sAdd],
req: params => GlAxios.post(__sAdd, params, {
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
requestType: 'jsonString'
})
}
/**
* 修改语音活动
*/
const mergeActivity = {
p: [__sMerge],
req: params => GlAxios.post(__sMerge, params, {
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
requestType: 'jsonString'
})
}
/**
* 查询语音活动
*/
const searchActivity = {
p: [__sSearch],
req: params => GlAxios.post(__sSearch, {
params
})
}
/**
* 查询语音活动
*/
const searchCoupon = {
p: [__sCouponSearch],
req: params => GlAxios.get(__sCouponSearch, params)
}
export {
voiceList,
manufacturers,
merchants,
addActivity,
mergeActivity,
searchActivity,
searchCoupon
}