From 73372f312e8b8bae98623006640b016f9a433988 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期一, 16 十月 2023 15:12:49 +0800
Subject: [PATCH] 10.16
---
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