marketing.js
1.24 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
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
// 查询短信营销列
const getMessageList = params => {
params.method = 'entmicro.api.message.findAllByPage'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
// 保存短信营销配置
const createMessageInfo= params => {
params.method = 'entmicro.api.message.createMessageInfo'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 查询短信营销客户列表
const findAllCustomerByPage = params => {
params.method = 'entmicro.api.message.findAllCustomerByPage'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
// 查询短信营销
const findDetailById = params => {
params.method = 'entmicro.api.message.findDetailById'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 删除
const updateMessageInfoStatus = params => {
params.method = 'entmicro.api.message.updateMessageInfoStatus'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default { createMessageInfo,updateMessageInfoStatus,getMessageList, findDetailById, findAllCustomerByPage}