From dd8ba2862f97f79caeaef780dfc709985b669ccc Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期四, 27 二月 2025 19:06:03 +0800 Subject: [PATCH] 修改管理后台接口bug --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/HomeController.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/HomeController.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/HomeController.java index 840cc85..45bca34 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/HomeController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/HomeController.java @@ -1,5 +1,6 @@ package com.panzhihua.sangeshenbian.controller; +import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.panzhihua.common.controller.BaseController; import com.panzhihua.common.model.vos.LoginUserInfoVO; @@ -17,6 +18,7 @@ import com.panzhihua.sangeshenbian.service.IComplaintService; import com.panzhihua.sangeshenbian.service.IMessageNotificationService; import com.panzhihua.sangeshenbian.service.ISystemUserService; +import com.panzhihua.sangeshenbian.utils.BaiduMapUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -82,4 +84,16 @@ messageNotificationService.read(getLoginUserInfo()); return R.ok(); } + + /** + * 百度地图圆形区域检索 + * @param query + * @param location + * @return + */ + @GetMapping("/search-location") + @ApiOperation("百度地图圆形区域检索") + public R<JSONArray> searchLocation(String query,String location){ + return R.ok(BaiduMapUtil.searchLocation(query,location)); + } } -- Gitblit v1.7.1