提交 | 用户 | 时间
|
325d3d
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface OpcDaDeviceVO { |
|
4 |
id: string |
|
5 |
serverName: string |
|
6 |
host: string |
|
7 |
user: string |
|
8 |
password: string |
|
9 |
progId: string |
|
10 |
clsId: string |
|
11 |
} |
|
12 |
|
|
13 |
export interface OpcDaDevicePageReqVO extends PageParam { |
|
14 |
serverName?: string |
|
15 |
} |
|
16 |
|
|
17 |
// 查询OpcDaDevice列表 |
|
18 |
export const getOpcDaDevicePage = (params: OpcDaDevicePageReqVO) => { |
|
19 |
return request.get({ url: '/data/channel/opcda/device/page', params }) |
|
20 |
} |
|
21 |
|
|
22 |
// 查询OpcDaDevice详情 |
|
23 |
export const getOpcDaDevice = (id: number) => { |
|
24 |
return request.get({ url: `/data/channel/opcda/device/info/${id}`}) |
|
25 |
} |
|
26 |
|
|
27 |
// 新增OpcDaDevice |
|
28 |
export const createOpcDaDevice = (data: OpcDaDeviceVO) => { |
24d32b
|
29 |
return request.post({ url: '/data/channel/opcda/device/create', data }) |
325d3d
|
30 |
} |
L |
31 |
|
|
32 |
// 修改OpcDaDevice |
|
33 |
export const updateOpcDaDevice = (data: OpcDaDeviceVO) => { |
|
34 |
return request.put({ url: '/data/channel/opcda/device/update', data }) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除OpcDaDevice |
|
38 |
export const deleteOpcDaDevice = (id: number) => { |
|
39 |
return request.delete({ url: '/data/channel/opcda/device/delete?id=' + id }) |
|
40 |
} |