提交 | 用户 | 时间
|
24d32b
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface KioTagVO { |
|
4 |
id: string |
|
5 |
tagName: string |
|
6 |
dataType: string |
|
7 |
tagId: number |
|
8 |
tagDesc: string |
|
9 |
enabled: boolean |
|
10 |
device: string |
|
11 |
samplingRate: number |
|
12 |
} |
|
13 |
|
|
14 |
export interface KioTagPageReqVO extends PageParam { |
|
15 |
tagName?: string |
|
16 |
tagDesc?: string |
|
17 |
} |
|
18 |
|
|
19 |
// 查询KioTag列表 |
|
20 |
export const getKioTagPage = (params: KioTagPageReqVO) => { |
|
21 |
return request.get({ url: '/data/channel/kio/tag/page', params }) |
|
22 |
} |
|
23 |
|
|
24 |
// 查询KioTag详情 |
|
25 |
export const getKioTag = (id: number) => { |
|
26 |
return request.get({ url: `/data/channel/kio/tag/info/${id}`}) |
|
27 |
} |
|
28 |
|
|
29 |
// 新增KioTag |
|
30 |
export const createKioTag = (data: KioTagVO) => { |
|
31 |
return request.post({ url: '/data/channel/kio/tag/create', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 修改KioTag |
|
35 |
export const updateKioTag = (data: KioTagVO) => { |
|
36 |
return request.put({ url: '/data/channel/kio/tag/update', data }) |
|
37 |
} |
|
38 |
|
|
39 |
// 删除KioTag |
|
40 |
export const deleteKioTag = (id: number) => { |
|
41 |
return request.delete({ url: '/data/channel/kio/tag/delete?id=' + id }) |
|
42 |
} |
d23859
|
43 |
|
J |
44 |
//导出KioTag |
|
45 |
export const exportKioTag = (params) => { |
|
46 |
return request.download({ url: '/data/channel/kio/tag/export', params }) |
|
47 |
} |
|
48 |
|
|
49 |
// 下载用户导入模板 |
|
50 |
export const importKioTagTemplate = () => { |
|
51 |
return request.download({ url: '/data/channel/kio/tag/get-import-template' }) |
|
52 |
} |