|
|
@@ -0,0 +1,25 @@
|
|
|
+package com.fdkankan.scene.httpclient;
|
|
|
+
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.dtflys.forest.annotation.DataFile;
|
|
|
+import com.dtflys.forest.annotation.JSONBody;
|
|
|
+import com.dtflys.forest.annotation.Post;
|
|
|
+import com.dtflys.forest.annotation.Var;
|
|
|
+import com.dtflys.forest.callback.OnError;
|
|
|
+import com.dtflys.forest.callback.OnSuccess;
|
|
|
+import com.fdkankan.web.response.ResultData;
|
|
|
+
|
|
|
+public interface HaixinClient {
|
|
|
+
|
|
|
+ @Post(url = "${url}", readTimeout = 60*60*1000, connectTimeout = 60*60*1000, timeout = 60*60*1000, maxRetryInterval = 5)
|
|
|
+ ResultData postJson(@Var("url") String url, @JSONBody Object param);
|
|
|
+
|
|
|
+ @Post(url="{url}", readTimeout = 60*60*1000, connectTimeout = 60*60*1000, timeout = 60*60*1000, maxRetryInterval = 5)
|
|
|
+ JSONObject uploadToFdfs(@Var("url")String url, @DataFile("file") String filePath);
|
|
|
+
|
|
|
+ //推送痕迹物证接口
|
|
|
+ @Post(url = "${host}/ecs/api/openapi/saveSceneInfo", readTimeout = 60*1000, connectTimeout = 60*1000, timeout = 60*1000, maxRetryInterval = 5)
|
|
|
+ ResultData<Void> saveSceneInfo(@Var("host") String host, @JSONBody JSONObject param);
|
|
|
+
|
|
|
+}
|