44 lines
787 B
TypeScript
44 lines
787 B
TypeScript
|
||
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
|
||
})
|
||
}
|
||
|
||
|