|
@@ -1,5 +1,6 @@
|
|
|
package com.steerinfo.dil.feign;
|
|
package com.steerinfo.dil.feign;
|
|
|
|
|
|
|
|
|
|
+import com.steerinfo.dil.config.MyFeignRequestInterceptor;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -12,8 +13,11 @@ import java.util.Map;
|
|
|
* @Date 2021/6/23 9:58
|
|
* @Date 2021/6/23 9:58
|
|
|
* @Version 1.0
|
|
* @Version 1.0
|
|
|
*/
|
|
*/
|
|
|
-@FeignClient(value = "ANTAI-COLUMN-DATA",url = "${openfeign.ColumnDataFeign.url}")
|
|
|
|
|
|
|
+@FeignClient(value = "ANTAI-COLUMN-DATA",url = "${openfeign.ColumnDataFeign.url}",configuration = MyFeignRequestInterceptor.class)
|
|
|
public interface ColumnDataFeign {
|
|
public interface ColumnDataFeign {
|
|
|
@RequestMapping("getColumnData")
|
|
@RequestMapping("getColumnData")
|
|
|
List<Map<String,Object>> getColumnData(@RequestParam("apiId") Integer apiId);
|
|
List<Map<String,Object>> getColumnData(@RequestParam("apiId") Integer apiId);
|
|
|
|
|
+
|
|
|
|
|
+ @RequestMapping("getColumnData")
|
|
|
|
|
+ List<Map<String,Object>> getColumnDataByUserId(@RequestParam("apiId") Integer apiId,@RequestParam(required = false,value = "userId") String userId);
|
|
|
}
|
|
}
|