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 | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/api/home/machineNest.js b/src/api/home/machineNest.js
index 41fcb4f..70bd5d2 100644
--- a/src/api/home/machineNest.js
+++ b/src/api/home/machineNest.js
@@ -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