From c7fe7ea4dcacaebb33644bdea3685260862b9497 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 22 Jan 2025 09:03:34 +0800
Subject: [PATCH] oss 增加字段处理
---
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