提交 | 用户 | 时间
|
91cd98
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface HttpTokenVO { |
|
4 |
id: string |
|
5 |
loginUrl: string, |
|
6 |
clientId: string, |
|
7 |
clientSecret: string, |
|
8 |
username: string, |
|
9 |
password: string, |
cfaf8b
|
10 |
refreshFreq: string, |
91cd98
|
11 |
token: string, |
潘 |
12 |
} |
|
13 |
|
|
14 |
export interface HttpTokenPageReqVO extends PageParam { |
cfaf8b
|
15 |
loginUrl?: string |
91cd98
|
16 |
} |
潘 |
17 |
|
|
18 |
// 查询HttpToken列表 |
|
19 |
export const getHttpTokenPage = (params: HttpTokenPageReqVO) => { |
|
20 |
return request.get({ url: '/data/channel/http/token/page', params }) |
|
21 |
} |
|
22 |
|
cfaf8b
|
23 |
// 查询HttpToken列表 |
潘 |
24 |
export const getHttpTokenList = () => { |
|
25 |
return request.get({ url: '/data/channel/http/token/list'}) |
|
26 |
} |
|
27 |
|
91cd98
|
28 |
// 查询HttpToken详情 |
潘 |
29 |
export const getHttpToken = (id: number) => { |
|
30 |
return request.get({ url: `/data/channel/http/token/info/${id}`}) |
|
31 |
} |
|
32 |
|
|
33 |
// 新增HttpToken |
|
34 |
export const createHttpToken = (data: HttpTokenVO) => { |
|
35 |
return request.post({ url: '/data/channel/http/token/create', data }) |
|
36 |
} |
|
37 |
|
|
38 |
// 修改HttpToken |
|
39 |
export const updateHttpToken = (data: HttpTokenVO) => { |
|
40 |
return request.put({ url: '/data/channel/http/token/update', data }) |
|
41 |
} |
|
42 |
|
|
43 |
// 删除HttpToken |
|
44 |
export const deleteHttpToken = (id: number) => { |
|
45 |
return request.delete({ url: '/data/channel/http/token/delete?id=' + id }) |
|
46 |
} |