payMerchantManage.js
1.99 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
100
101
102
103
104
105
106
import { http } from '@/main'
const defaultPath = 'entmicro.api.payment.'
const url = '/rop-scrm-entmicro/router'
// 获取支付商户列表数据
const getListApi = params => {
params.method = `${defaultPath}pageListPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 获取所属商户数据
const getBusinessListApi = params => {
params.method = `${defaultPath}listMerchant`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
// 创建支付商户账号
const creatPayMerchantApi = params => {
params.method = `${defaultPath}createPayment`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 删除支付商户账号
const delPayMerchantApi = params => {
params.method = `${defaultPath}deleteById`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试公众号码
const creatBizQrcodeApi = params => {
params.method = `${defaultPath}createBizQrCode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成收款测试微信小程序码
const createWeappQrcodeApi = params => {
params.method = `${defaultPath}createWeappQrcode`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 上传证书
const uploadCertApi = params => {
params.method = `${defaultPath}uploadCert`
return http({
url: url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取应用Id列表
const getlistAppInfoApi = params => {
params.method = `${defaultPath}listAppInfo`
return http({
url: url,
method: 'POST',
data: params,
sign: true
})
}
export default {
getListApi,
getBusinessListApi,
creatPayMerchantApi,
delPayMerchantApi,
creatBizQrcodeApi,
createWeappQrcodeApi,
uploadCertApi,
getlistAppInfoApi
}