提交 | 用户 | 时间
|
91cd98
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface HttpTagVO { |
|
4 |
id: string |
|
5 |
apiId: string, |
|
6 |
tagName: string, |
|
7 |
dataType: string, |
|
8 |
tagDesc: string, |
|
9 |
enabled: boolean |
|
10 |
} |
|
11 |
|
|
12 |
export interface HttpTagPageReqVO extends PageParam { |
|
13 |
tagName?: string |
|
14 |
} |
|
15 |
|
|
16 |
// 查询HttpTag列表 |
|
17 |
export const getHttpTagPage = (params: HttpTagPageReqVO) => { |
|
18 |
return request.get({ url: '/data/channel/http/tag/page', params }) |
|
19 |
} |
|
20 |
|
|
21 |
// 查询HttpTag详情 |
|
22 |
export const getHttpTag = (id: number) => { |
|
23 |
return request.get({ url: `/data/channel/http/tag/info/${id}`}) |
|
24 |
} |
|
25 |
|
|
26 |
// 新增HttpTag |
|
27 |
export const createHttpTag = (data: HttpTagVO) => { |
|
28 |
return request.post({ url: '/data/channel/http/tag/create', data }) |
|
29 |
} |
|
30 |
|
|
31 |
// 修改HttpTag |
|
32 |
export const updateHttpTag = (data: HttpTagVO) => { |
|
33 |
return request.put({ url: '/data/channel/http/tag/update', data }) |
|
34 |
} |
|
35 |
|
|
36 |
// 删除HttpTag |
|
37 |
export const deleteHttpTag = (id: number) => { |
|
38 |
return request.delete({ url: '/data/channel/http/tag/delete?id=' + id }) |
|
39 |
} |