accountConfig.js
1.69 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
import { http } from '@/main'
const defaultPath = 'scrm.api.work.wechat.account.'
// 批量激活
const activeAccount = params => {
params.method = `${defaultPath}activeAccount`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 获取企业的激活列表
const listAccountCodeWithPage = params => {
params.method = `${defaultPath}listAccountCodeWithPage`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true
})
}
// 获取企业的许可列表
const listCustomizedAgentWithPage = params => {
params.method = `${defaultPath}listCustomizedAgentWithPage`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true
})
}
// 同步许可信息
const syncCorpAccountCode = params => {
params.method = `${defaultPath}syncCorpAccountCode`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 账号转移
const transferLicenseAccount = params => {
params.method = `${defaultPath}transferLicenseAccount`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 查询未激活员工账号
const findNotActiveStaff = params => {
params.method = `${defaultPath}findNotActiveStaff`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
export default {
activeAccount,
transferLicenseAccount,
syncCorpAccountCode,
listAccountCodeWithPage,
listCustomizedAgentWithPage,
findNotActiveStaff
}