From 1330e34042e89d5b0062a185ead01a7f66323be5 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期五, 18 七月 2025 08:43:10 +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