提交 | 用户 | 时间
|
314507
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface SocialClientVO { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
socialType: number |
|
7 |
userType: number |
|
8 |
clientId: string |
|
9 |
clientSecret: string |
|
10 |
agentId: string |
|
11 |
status: number |
|
12 |
} |
|
13 |
|
|
14 |
// 查询社交客户端列表 |
|
15 |
export const getSocialClientPage = async (params) => { |
|
16 |
return await request.get({ url: `/system/social-client/page`, params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 查询社交客户端详情 |
|
20 |
export const getSocialClient = async (id: number) => { |
|
21 |
return await request.get({ url: `/system/social-client/get?id=` + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 新增社交客户端 |
|
25 |
export const createSocialClient = async (data: SocialClientVO) => { |
|
26 |
return await request.post({ url: `/system/social-client/create`, data }) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改社交客户端 |
|
30 |
export const updateSocialClient = async (data: SocialClientVO) => { |
|
31 |
return await request.put({ url: `/system/social-client/update`, data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 删除社交客户端 |
|
35 |
export const deleteSocialClient = async (id: number) => { |
|
36 |
return await request.delete({ url: `/system/social-client/delete?id=` + id }) |
|
37 |
} |