From 524c42f8c77bcd5d93484bcbee721b6cd9ebe296 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 02 Apr 2025 18:46:02 +0800
Subject: [PATCH] feat: 全局组件自动注册
---
src/api/home/machineNest.js | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index c3045d5..70bd5d2 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -1,11 +1,11 @@
import request from '@/axios';
// 机巢统计
-export const getDeviceInfoNum = () => {
+export const getDeviceInfoNum = (params) => {
return request({
url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
method: 'get',
- params: {},
+ params,
});
};
// 机巢列表
@@ -17,7 +17,6 @@
nickname,
is_execute,
},
- params,
});
};
// 机巢数据
@@ -28,3 +27,23 @@
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