From af1fc23db78dffb922252bf1bb200929a2ebb1e5 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Wed, 05 Feb 2025 18:43:26 +0800
Subject: [PATCH] 设备注册增加类型字段,0机场1遥控器,默认0
---
src/api/device/device.js | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/api/device/device.js b/src/api/device/device.js
index 548913a..cd84c9a 100644
--- a/src/api/device/device.js
+++ b/src/api/device/device.js
@@ -38,6 +38,14 @@
});
};
+export const operatePasswordUpdate = row => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/operatePasswordUpdate',
+ method: 'post',
+ data: row,
+ });
+};
+
export const getDetail = id => {
return request({
url: '/drone-yw/manage/api/v1/devices/getDetail',
@@ -47,6 +55,17 @@
},
});
};
+
+export const getOperatePassword = id => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/getFlyOperatePassword',
+ method: 'get',
+ params: {
+ id,
+ },
+ });
+};
+
export const getDeviceUpgradeInfo = (params) => {
@@ -103,4 +122,11 @@
ids
}
});
+};
+
+export const getDevices = (workspace_id,device_sn) => {
+ return request({
+ url: `/drone-yw/manage/api/v1/devices/${workspace_id}/devices/${device_sn}`,
+ method: 'get',
+ });
};
\ No newline at end of file
--
Gitblit v1.9.3