From 7d069cdc3edf2010ceeec0f85385c2af447e9559 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 10 Mar 2025 14:12:17 +0800
Subject: [PATCH] 配合后端修改前缀
---
src/api/device/device.js | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/src/api/device/device.js b/src/api/device/device.js
index 548913a..f21e186 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',
@@ -48,6 +56,15 @@
});
};
+export const getOperatePassword = id => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/getFlyOperatePassword',
+ method: 'get',
+ params: {
+ id,
+ },
+ });
+};
export const getDeviceUpgradeInfo = (params) => {
return request({
@@ -64,7 +81,6 @@
data: row,
});
};
-
export const getDeviceFirmwareList = (current, size, params) => {
return request({
@@ -103,4 +119,18 @@
ids
}
});
+};
+
+export const getDevices = (workspace_id,device_sn) => {
+ return request({
+ url: `/drone-yw/manage/api/v1/devices/${workspace_id}/devices/${device_sn}`,
+ method: 'get',
+ });
+};
+
+export const getAirportList = () => {
+ return request({
+ url: '/drone-yw/manage/api/v1/devices/getAirportList',
+ method: 'get',
+ });
};
\ No newline at end of file
--
Gitblit v1.9.3