From 419fe50acad4674f50c6639b3ec7ccbcaf2cbf44 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 20 三月 2025 17:43:49 +0800
Subject: [PATCH] 走航融合(待完成)

---
 src/api/sceneInfoApi.js |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/api/sceneInfoApi.js b/src/api/sceneInfoApi.js
index 56cbbc6..e412d46 100644
--- a/src/api/sceneInfoApi.js
+++ b/src/api/sceneInfoApi.js
@@ -1,14 +1,27 @@
 import { $http } from './index';
 
 /**
- *
+ * 鍦烘櫙淇℃伅API鎺ュ彛
  */
 export default {
+  /**
+   * 鏌ユ壘琛屾斂鍖哄垝鑼冨洿鍐呯殑鏌愮被鍦烘櫙
+   * @param {Object} area
+   * @returns
+   */
   searchScene(area) {
     return $http.post(`scene/find`, area).then((res) => res.data);
-  }
+  },
 
-  // searchByCoordinate({lng, lat, radius}) {
-  //   return $http.post(`scene/find/radius`, mission).then((res) => res.data);
-  // },
+  /**
+   * 鏌ユ壘鍗婂緞鑼冨洿鍐呯殑鍦烘櫙
+   * @param {Number} lng 缁忓害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級
+   * @param {Number} lat 缁村害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級
+   * @param {Number} radius 鍗婂緞锛屽崟浣嶇背
+   * @returns
+   */
+  searchByCoordinate(lng, lat, radius) {
+    let param = `?lng=${lng}&lat=${lat}&radius=${radius}`;
+    return $http.post(`scene/find/radius${param}`).then((res) => res.data);
+  }
 };

--
Gitblit v1.9.3