From d8662fba10c3aab8366f46a216b9c2fc615901d2 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期五, 18 七月 2025 10:00:23 +0800
Subject: [PATCH] 设备增加海拔字段

---
 src/api/system/template.js |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/api/system/template.js b/src/api/system/template.js
index 9d0387a..4f8b3d2 100644
--- a/src/api/system/template.js
+++ b/src/api/system/template.js
@@ -8,3 +8,35 @@
     data: data
   });
 }
+
+// 鏌ヨ鍙傛暟璇︾粏
+export function getPointInfo(id) {
+  return request({
+    url: '/tower/point/' + id,
+    method: 'get'
+  });
+}
+
+// 鏍规嵁璁惧di鑾峰彇璁惧鐨勯琛岃埅绾挎ā鐗�
+export function obtainRealData(flightTemplateId, deviceId) {
+  return request({
+    url: `/tower/route/getTrueBearing/${flightTemplateId}/${deviceId}`,
+    method: 'get'
+  });
+}
+
+// 鏍规嵁璁惧di鑾峰彇璁惧鐨勯琛岃埅绾挎ā鐗�
+export function flyDataInfo(deviceId) {
+  return request({
+    url: '/tower/point/device/' + deviceId,
+    method: 'get'
+  });
+}
+
+export function buildKmz(data) {
+  return request({
+    url: '/buildKmz',
+    method: 'post',
+    data: data
+  });
+}

--
Gitblit v1.9.3