forked from drone/command-center-dashboard

罗广辉
2025-04-18 853fcbb7f34daa481e8141df8adb72cfaba6f144
src/api/payload.js
@@ -44,7 +44,7 @@
// 拍照和录像
export async function callPhotoAndVideoCmd(sn, type) {
  return await request({
    url:`/drone-device-core/droneAirport/liveStreamApi/${sn}/payload/photoAndVideoCmd/${type}`,
    url:`${API_PREFIX}/devices/${sn}/payload/photoAndVideoCmd/${type}`,
    method:'get',
  })
}
@@ -53,9 +53,18 @@
// 相机参数调整
export async function cameraParamsChangeApi(data) {
  return await request({
    url:`/drone-device-core/payload-control/payload/zoom/level`,
    url:`${API_PREFIX}/devices/payload-control/payload/zoom/level`,
    method:'post',
    data
  })
}
// 云台重置
export async function ptzResetModeApi(params) {
  return await request({
    url:`${API_PREFIX}/devices/payload-control/payload/reset`,
    method:'get',
    params
  })
}
@@ -71,4 +80,14 @@
};
// 无人机开启ai
export const getLiveAiLinkApi = (data) => {
  return request({
    url:`/drone-device-core/manage/api/v1/live/streams/start/ai`,
    method: 'post',
    data,
  });
};