From bdb66cf55723eab8ce633a2babea25d315cab0d5 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 09 Apr 2025 17:52:00 +0800
Subject: [PATCH] feat: 新建航线
---
src/api/home/task.js | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/api/home/task.js b/src/api/home/task.js
index b26b7b2..e6282ad 100644
--- a/src/api/home/task.js
+++ b/src/api/home/task.js
@@ -92,7 +92,10 @@
method: 'post',
data: {
wayline_id: data.wayline_id,
- type: data.type
+ type: data.type,
+ latitude: data.latitude,
+ longitude: data.longitude,
+ polygon: data.polygon
},
})
}
@@ -106,5 +109,15 @@
})
}
+// 面状航线
+export const getWaylineByArea = (data) => {
+ return request({
+ url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineByArea`,
+ method: 'post',
+ data,
+ })
+}
+
+
--
Gitblit v1.9.3