whiteList.js
1.49 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
import {http} from "@/main";
const url = 'rop-scrm-entmicro/router'
// 订阅开通商户分页查询
const subscribeMerchant = params => {
// entmicro.api.system.subscribe.merchant.page
params.method = `entmicro.api.system.withdrawal.of.points.merchant.page`
return http({
url,
method: 'POST',
data: params,
returnAll: true
})
}
const whiteListPage = params =>{
params.method = `stoassistant.api.withdrawal.of.points.page`
return http({
url:'rop-scrm-stoassistant/router',
method: 'POST',
data: params
})
}
// 积分提现门店白名单配置校验
const whiteListCheck = params =>{
params.method = `stoassistant.api.withdrawal.of.points.merchant.check`
return http({
url:'rop-scrm-stoassistant/router',
method: 'POST',
data: params,
returnAll: true
})
}
const whiteListSave = params =>{
params.method = `stoassistant.api.withdrawal.of.points.merchant.list.save`
return http({
url:'rop-scrm-stoassistant/router',
method: 'POST',
data: params,
returnAll: true
})
}
const whiteListDelete = params =>{
params.method = `stoassistant.api.withdrawal.of.points.merchant.list.delete`
return http({
url:'rop-scrm-stoassistant/router',
method: 'POST',
data: params,
returnAll: true
})
}
export default {
subscribeMerchant,
whiteListPage,
whiteListCheck,
whiteListSave,
whiteListDelete
}