From 21bd711a3756850299b443848181ee60708c6377 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期五, 17 四月 2026 20:20:45 +0800
Subject: [PATCH] 代码生成

---
 server/web/src/main/java/com/doumee/api/web/ConfigApi.java |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
index 46a157e..af1e457 100644
--- a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
@@ -3,21 +3,21 @@
 import com.doumee.core.annotation.LoginRequired;
 import com.doumee.core.annotation.trace.Trace;
 import com.doumee.core.model.ApiResponse;
+import com.doumee.core.utils.Tencent.MapUtil;
 import com.doumee.dao.business.model.Areas;
 import com.doumee.dao.business.model.Banner;
 import com.doumee.dao.business.model.Category;
 import com.doumee.dao.dto.CalculateLocalPriceDTO;
 import com.doumee.dao.dto.CalculateRemotePriceDTO;
-import com.doumee.dao.vo.AccountResponse;
+import com.doumee.dao.dto.SameCityCheckDTO;
 import com.doumee.dao.vo.PriceCalculateVO;
-import com.doumee.dao.vo.UserCenterVO;
+import com.doumee.dao.vo.PlatformAboutVO;
 import com.doumee.service.business.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.checkerframework.checker.units.qual.A;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -89,12 +89,9 @@
 
     @ApiOperation(value = "鑾峰彇绯荤粺閰嶇疆", notes = "灏忕▼搴忕")
     @GetMapping("/getPlatformAboutUs")
-    public ApiResponse<UserCenterVO> getPlatformAboutUs() {
+    public ApiResponse<PlatformAboutVO> getPlatformAboutUs() {
         return  ApiResponse.success("鏌ヨ鎴愬姛",memberService.getPlatformAboutUs());
     }
-
-
-
 
     @LoginRequired
     @ApiOperation(value = "璁$畻淇濅环璐圭敤", notes = "鏍规嵁鎶ヤ环閲戦璁$畻淇濅环璐圭敤")
@@ -121,10 +118,20 @@
         return ApiResponse.success("鎿嶄綔鎴愬姛", ordersService.calculateRemotePrice(dto));
     }
 
+    @ApiOperation(value = "鏍¢獙涓や釜缁忕含搴︽槸鍚﹀悓鍩�", notes = "浼犲叆涓ょ粍缁忕含搴︼紝杩斿洖鏄惁鍦ㄥ悓涓�鍩庡競")
+    @PostMapping("/isSameCity")
+    public ApiResponse<Boolean> isSameCity(@RequestBody SameCityCheckDTO dto) {
+        return ApiResponse.success("鎿嶄綔鎴愬姛", MapUtil.isSameCity(dto.getLat1(), dto.getLng1(), dto.getLat2(), dto.getLng2()));
+    }
 
-
-
-
+    @ApiOperation(value = "鏍规嵁鍩庡競鍚嶇О鏌ヨ鍩庡競淇℃伅", notes = "浠呰繑鍥炲凡寮�閫氱殑鍩庡競锛屾湭寮�閫氳繑鍥炵┖")
+    @GetMapping("/getCityByName")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "cityName", value = "鍩庡競鍚嶇О", required = true)
+    })
+    public ApiResponse<Areas> getCityByName(@RequestParam String cityName) {
+        return ApiResponse.success("鏌ヨ鎴愬姛", areasService.getOpenedCityByName(cityName));
+    }
 
 
 }

--
Gitblit v1.9.3