Files
web-Iot/src/api/device.ts

44 lines
787 B
TypeScript
Raw Normal View History

2026-05-11 10:47:51 +08:00
import request from './request';
export function getDeviceListApi(data) {
return request({
url: `/iot/device/userDevice?tenantName=${data.tenantName}&deptId=${data.deptId}`,
method: 'get',
});
}
export function getPlaneDeviceList() {
return request({
url: '/iot/UAV/getProjectDeviceList',
method: 'get',
})
}
2026-05-11 14:59:36 +08:00
export function getLiveStream(data) {
return request({
url: '/iot/UAV/liveStream',
method: 'post',
data
})
}
2026-05-12 10:34:50 +08:00
export function getControlRight(params) {
return request({
url: `/websocket/judgeConnection`,
method: 'get',
params
})
}
// 远程遥控 判断是否有权限/forward/device/remoteControl platform:web
export function getJurisdiction(data) {
return request({
url: '/forward/device/remoteControl',
method: 'post',
data
})
}