From f5ca8f01cf6b8256a25e8c6838d805fe3fca43fc Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期一, 07 八月 2023 11:34:21 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java b/cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java index 37115ba..cdd5a74 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java +++ b/cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java @@ -1,15 +1,13 @@ package com.dsh.account.feignclient.other; import com.dsh.account.feignclient.course.model.QueryStoreList; -import com.dsh.account.feignclient.other.model.Store; -import com.dsh.account.feignclient.other.model.StoreDetailOfCourse; -import com.dsh.account.feignclient.other.model.StoreInfo; -import com.dsh.account.feignclient.other.model.StoreLonLatList; +import com.dsh.account.feignclient.other.model.*; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RequestBody; import java.util.List; + @FeignClient(value = "mb-cloud-other") public interface StoreClient { @@ -31,13 +29,21 @@ @PostMapping("/base/protocol/storeDetail/courseOfSto") - StoreDetailOfCourse getCourseOfStore(@RequestParam("storeId") Integer storeId); + public StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId); @PostMapping("/base/protocol/storeDetail/nearbyStore") - List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); + List<StoreInfo> getAllNearbyStoreList(@RequestBody GetAllNearbyStoreList getAllNearbyStoreList); + @PostMapping("/base/protocol/storeDetail/citycodeLoLa") + List<StoreDetailList> getQueryStoreList(@RequestBody StoreOfCitycodeResp citycodeResp); - @PostMapping("/base/protocol/storeDetail/storeOfLonLat") - List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); + /** + * 根据门店id获取门店信息 + * @param id + * @return + */ + @PostMapping("/store/queryStoreById") + Store queryStoreById(Integer id); + } -- Gitblit v1.7.1