提交 | 用户 | 时间
|
325d3d
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface KioDeviceVO { |
|
4 |
id: string |
|
5 |
instanceName: string |
|
6 |
address: string |
|
7 |
port: number |
|
8 |
username: string |
|
9 |
password: string |
|
10 |
} |
|
11 |
|
|
12 |
export interface KioDevicePageReqVO extends PageParam { |
|
13 |
instanceName?: string |
|
14 |
address?: string |
|
15 |
} |
|
16 |
|
|
17 |
// 查询KioDevice列表 |
|
18 |
export const getKioDevicePage = (params: KioDevicePageReqVO) => { |
|
19 |
return request.get({ url: '/data/channel/kio/device/page', params }) |
|
20 |
} |
|
21 |
|
|
22 |
// 查询KioDevice详情 |
|
23 |
export const getKioDevice = (id: number) => { |
|
24 |
return request.get({ url: `/data/channel/kio/device/info/${id}`}) |
|
25 |
} |
|
26 |
|
|
27 |
// 新增KioDevice |
|
28 |
export const createKioDevice = (data: KioDeviceVO) => { |
|
29 |
return request.post({ url: '/data/channel/kio/device/add', data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 修改KioDevice |
|
33 |
export const updateKioDevice = (data: KioDeviceVO) => { |
|
34 |
return request.put({ url: '/data/channel/kio/device/update', data }) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除KioDevice |
|
38 |
export const deleteKioDevice = (id: number) => { |
|
39 |
return request.delete({ url: '/data/channel/kio/device/delete?id=' + id }) |
|
40 |
} |