From a6ef8f0dd977a30abd878f8e6106630b97d6e5b0 Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期一, 10 七月 2023 16:49:14 +0800
Subject: [PATCH] 本周福利:接口开发

---
 cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 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 67097be..0dc55b4 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,11 +1,10 @@
 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 com.dsh.other.feignclient.model.*;
 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;
 
@@ -13,14 +12,18 @@
 public interface StoreClient {
 
 
-    @PostMapping("/storeDetail/courseOfSto")
-    public StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId);
+    @PostMapping("/base/protocol/storeDetail/courseOfSto")
+     StoreDetailOfCourse getCourseOfStore(@RequestParam("storeId") Integer storeId);
 
 
-    @PostMapping("/storeDetail/nearbyStore")
-    List<StoreInfo> getAllNearbyStoreList(@RequestBody String longitude, @RequestBody String latitude);
+    @PostMapping("/base/protocol/storeDetail/nearbyStore")
+    List<StoreInfo> getAllNearbyStoreList(@RequestBody GetAllNearbyStoreList list);
 
 
-    @PostMapping("/storeDetail/storeOfLonLat")
-    public List<StoreLonLatList> getAllStoreLonLats(@RequestBody String longitude, @RequestBody String latitude);
+    @PostMapping("/base/protocol/storeDetail/storeOfLonLat")
+     List<StoreLonLatList> getAllStoreLonLats(@RequestBody GetAllNearbyStoreList list);
+
+
+    @PostMapping("/base/protocol/storeDetail/distanceCal")
+    public long calculateDistance(@RequestBody GetDistanceVo distanceVo);
 }

--
Gitblit v1.7.1