|
@@ -2,6 +2,7 @@ package com.fdkankan.scene.httpclient;
|
|
|
|
|
|
import com.dtflys.forest.annotation.Get;
|
|
|
import com.dtflys.forest.annotation.Request;
|
|
|
+import com.dtflys.forest.annotation.Retry;
|
|
|
import com.dtflys.forest.annotation.Success;
|
|
|
import com.dtflys.forest.annotation.Var;
|
|
|
import com.dtflys.forest.callback.OnError;
|
|
@@ -27,12 +28,15 @@ public interface FdkankanMiniClient {
|
|
|
@Get(url="{url}"
|
|
|
// ,interceptor = TLogForestInterceptor.class 加这个拦截器,打印的tlog日志会详细一些,包括头信息等等
|
|
|
)
|
|
|
+ @Retry(maxRetryCount = "3", maxRetryInterval = "100")
|
|
|
Result<String> getDataSyncType(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
|
|
|
|
|
|
@Get("{url}")
|
|
|
+ @Retry(maxRetryCount = "3", maxRetryInterval = "100")
|
|
|
Result<UserIncrementBean> getUserIncrementByCameraId(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
|
|
|
|
|
|
@Get("{url}")
|
|
|
+ @Retry(maxRetryCount = "3", maxRetryInterval = "100")
|
|
|
Result<CameraBean> getCameraByCameraId(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
|
|
|
|
|
|
}
|