Files
web-Iot/src/api/device.ts
2026-05-12 10:34:50 +08:00

44 lines
787 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',
})
}
export function getLiveStream(data) {
return request({
url: '/iot/UAV/liveStream',
method: 'post',
data
})
}
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
})
}