接口对接修改

This commit is contained in:
仲么了
2023-07-24 08:47:20 +08:00
parent 2104bc0c4c
commit 689436759f
31 changed files with 1070 additions and 448 deletions

View File

@@ -30,12 +30,11 @@ export function getModel(nDid) {
url: '/access-boot/device/model',
method: 'post',
data: {
nDid
nDid,
},
})
}
// 直连设备接入
export function addDevice(params) {
return request({
@@ -54,7 +53,37 @@ export function registerDevice(nDid) {
url: '/access-boot/device/register',
method: 'post',
data: {
nDid
nDid,
},
})
}
}
// 查询拓扑图模板
export const getTopoTemplate = () => {
return request({
url: '/cs-device-boot/topologyTemplate/queryImage',
method: 'POST',
})
}
// 查询拓扑图模板监测点
export const queryByTopoId = (id) => {
return request({
url: '/cs-device-boot/lineTemplate/queryByTopoId',
method: 'POST',
data: {
topoId:id,
},
})
}
// 查询装置拓扑图
export const queryTopologyDiagram = (devId) => {
return request({
url: '/cs-device-boot/lineTopologyDiagram/queryTopologyDiagram',
method: 'POST',
data: {
devId,
},
})
}