forked from drone/command-center-dashboard

罗广辉
2025-03-31 46f05dd23583a4a4b58f136a4b6f2d32eb91be5a
src/api/home/machineNest.js
@@ -1,10 +1,21 @@
import request from '@/axios';
// 机巢列表
// 机巢统计
export const getDeviceInfoNum = () => {
  return request({
    url: '/manage/api/v1/devices/getDeviceInfoNum',
    method: 'post',
    url: 'drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
    method: 'get',
    params: {},
  });
};
};
// 机巢列表
export const selectDevicePage = (params) => {
  return request({
    url: `drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}&current=${params.current}&size=${params.size}`,
    method: 'post',
    data: {
      nickname: params.nickname,
      is_execute: params.is_execute,
    },
  });
};