From 0ce090ba49e37710a129cf21ac762bbe43bcd50b Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期四, 06 七月 2023 11:17:35 +0800
Subject: [PATCH] 修改各个feign的请求封装参数
---
cloud-server-other/src/main/java/com/dsh/other/feignclient/StoreClient.java | 6 ++++--
1 files changed, 4 insertions(+), 2 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 65f4ae7..035d317 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,10 +1,12 @@
package com.dsh.other.feignclient;
+import com.dsh.other.feignclient.model.GetAllNearbyStoreList;
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;
@@ -18,9 +20,9 @@
@PostMapping("/base/protocol/storeDetail/nearbyStore")
- List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude);
+ List<StoreInfo> getAllNearbyStoreList(@RequestBody GetAllNearbyStoreList list);
@PostMapping("/base/protocol/storeDetail/storeOfLonLat")
- List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude);
+ List<StoreLonLatList> getAllStoreLonLats(@RequestBody GetAllNearbyStoreList list);
}
--
Gitblit v1.7.1