From 20cc9b22e1cdb93d081c6596ec762e9f928e208a Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期三, 05 七月 2023 11:28:25 +0800 Subject: [PATCH] 修复模块中的地址 --- cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java b/cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java index 16b9a51..65f4ae7 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java +++ b/cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java @@ -1,14 +1,26 @@ package com.dsh.other.feignclient; import com.dsh.other.feignclient.model.StoreDetailOfCourse; +import com.dsh.other.feignclient.model.StoreInfo; +import com.dsh.other.feignclient.model.StoreLonLatList; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestParam; + +import java.util.List; @FeignClient(value = "mb-cloud-other") public interface StoreClient { - @PostMapping("/storeDetail/courseOfSto") - public StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId); + @PostMapping("/base/protocol/storeDetail/courseOfSto") + StoreDetailOfCourse getCourseOfStore(@RequestParam("storeId") Integer storeId); + + + @PostMapping("/base/protocol/storeDetail/nearbyStore") + List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); + + + @PostMapping("/base/protocol/storeDetail/storeOfLonLat") + List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); } -- Gitblit v1.7.1