| | |
| | | */ |
| | | export const setThermalCurrentPaletteStyle = (deviceSn, workspaceId, param) => { |
| | | return request({ |
| | | // /manage/api/v1/devices/selectDevicePage |
| | | // url: `/localApi/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/setThermalCurrentPaletteStyle`, |
| | | url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/setThermalCurrentPaletteStyle`, |
| | | method: 'put', |
| | | data: param, |
| | | }) |
| | | } |
| | | /** |
| | | * 照片存储设置 |
| | | * @param {机场编码} sn |
| | | * @param {*} body |
| | | * @returns |
| | | */ |
| | | export const setPhotoStorageSet = (sn, param) => { |
| | | return request({ |
| | | // url: `/localApi/control/api/v1/devices/${sn}/payload/photoStorageSet`, |
| | | url: `/drone-device-core/control/api/v1/devices/${sn}/payload/photoStorageSet`, |
| | | method: 'post', |
| | | data: param, |
| | | }) |
| | | } |
| | | /** |
| | | * 视频存储设置 |
| | | * @param {机场编码} sn |
| | | * @param {*} body |
| | | * @returns |
| | | */ |
| | | export const setVideoStorageSet = (sn, param) => { |
| | | return request({ |
| | | // url: `/localApi/control/api/v1/devices/${sn}/payload/videoStorageSet`, |
| | | url: `/drone-device-core/control/api/v1/devices/${sn}/payload/videoStorageSet`, |
| | | method: 'post', |
| | | data: param |
| | | , |
| | | }) |
| | | } |
| | | // 获取live_status |
| | | export const getLiveStatus = (sn) => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/live/getLiveStatus/${sn}`, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 视频流设置方法 |
| | | export const setStreamsSwitch = (param) => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/live/streams/switch`, |
| | | method: 'post', |
| | | data: param |
| | | }) |
| | | } |
| | | // 控制台-云台拍照录像动作 |
| | | export const photoAndVideoCmd = (droneSn,mode) => { |
| | | return request({ |
| | | url: `/drone-device-core/droneAirport/liveStreamApi/switch/vedioMode`, |
| | | method: 'get', |
| | | params: { |
| | | droneSn, |
| | | mode |
| | | } |
| | | }) |
| | | } |