From 7635213630830c4cbb9ff6ada69ba9b5c8a35d42 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 03 Apr 2025 11:05:34 +0800
Subject: [PATCH] feat: 地图居中点调整

---
 src/api/home/machineNest.js |   54 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 46 insertions(+), 8 deletions(-)

diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 099d912..f69f70d 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,10 +1,48 @@
-import request from '@/axios';
+import request from '@/axios'
 
+// 机巢统计
+export const getDeviceInfoNum = params => {
+	return request({
+		url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
+		method: 'get',
+		params,
+	})
+}
 // 机巢列表
-export const getDeviceInfoNum = () => {
-  return request({
-    url: '/manage/api/v1/devices/getDeviceInfoNum',
-    method: 'post',
-    params: {},
-  });
-};
\ No newline at end of file
+export const selectDevicePage = ({ nickname, is_execute, ...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,
+			is_execute,
+		},
+	})
+}
+// 机巢数据
+export const getFlightStatistics = dockSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
+		method: 'get',
+		params: {},
+	})
+}
+// 机巢直播/无人机直播 均可使用
+export const liveStart = deviceSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}`,
+		method: 'post',
+		data: {},
+		headers: {
+			areaCode: '',
+		},
+	})
+}
+// 单个机巢获取机巢详情
+export const getDeviceDetail = deviceSn => {
+	return request({
+		url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`,
+		method: 'get',
+		params: {},
+	})
+}

--
Gitblit v1.9.3