提交 | 用户 | 时间
|
325d3d
|
1 |
import request from '@/config/axios' |
L |
2 |
|
|
3 |
export interface OpcUaDeviceVO { |
|
4 |
id: string |
|
5 |
serverName: string |
|
6 |
endpointUrl: string |
|
7 |
securityPolicy: string |
|
8 |
securityMode: string |
|
9 |
connectionType: string |
|
10 |
userName: string |
|
11 |
password: string |
|
12 |
certificatePath: string |
|
13 |
connectInactivityTimeout: number |
|
14 |
reconnectInterval: number |
|
15 |
} |
|
16 |
|
|
17 |
export interface OpcUaDevicePageReqVO extends PageParam { |
|
18 |
serverName?: string |
|
19 |
} |
|
20 |
|
|
21 |
// 查询OpcUaDevice列表 |
|
22 |
export const getOpcUaDevicePage = (params: OpcUaDevicePageReqVO) => { |
|
23 |
return request.get({ url: '/data/channel/opcua/device/page', params }) |
|
24 |
} |
|
25 |
|
|
26 |
// 查询OpcUaDevice详情 |
|
27 |
export const getOpcUaDevice = (id: number) => { |
|
28 |
return request.get({ url: `/data/channel/opcua/device/info/${id}`}) |
|
29 |
} |
|
30 |
|
|
31 |
// 新增OpcUaDevice |
|
32 |
export const createOpcUaDevice = (data: OpcUaDeviceVO) => { |
24d32b
|
33 |
return request.post({ url: '/data/channel/opcua/device/create', data }) |
325d3d
|
34 |
} |
L |
35 |
|
|
36 |
// 修改OpcUaDevice |
|
37 |
export const updateOpcUaDevice = (data: OpcUaDeviceVO) => { |
|
38 |
return request.put({ url: '/data/channel/opcua/device/update', data }) |
|
39 |
} |
|
40 |
|
|
41 |
// 删除OpcUaDevice |
24d32b
|
42 |
export const deleteOpcUaDevice = (id: string) => { |
325d3d
|
43 |
return request.delete({ url: '/data/channel/opcua/device/delete?id=' + id }) |
L |
44 |
} |