123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //package com.fdkankan.scene.httpclient;
- //
- //import com.dtflys.forest.annotation.Get;
- //import com.dtflys.forest.annotation.Header;
- //import com.dtflys.forest.annotation.Post;
- //import com.dtflys.forest.annotation.Retry;
- //import com.dtflys.forest.annotation.Success;
- //import com.dtflys.forest.annotation.Var;
- //import com.dtflys.forest.callback.OnError;
- //import com.dtflys.forest.callback.OnSuccess;
- //import com.fdkankan.common.response.Result;
- //import java.util.Map;
- //import com.fdkankan.scene.bean.CameraBean;
- //import com.fdkankan.scene.bean.UserIncrementBean;
- //import com.fdkankan.scene.callback.FdkkMiniReqSuccessCondition;
- //
- ///**
- // * <p>
- // * TODO
- // * </p>
- // *
- // * @author dengsixing
- // * @since 2022/4/24
- // **/
- //@Success(condition = FdkkMiniReqSuccessCondition.class)
- //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);
- //
- //// @Get(url="{url}")
- //// @Retry(maxRetryCount = "3", maxRetryInterval = "100")
- //// Result<SceneProV3> getSceneProByNum(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
- //
- // @Post(url="{url}")
- // @Retry(maxRetryCount = "3", maxRetryInterval = "100")
- // Result<Map<String, Object>> getIsLogin(@Var("url") String url, @Header("token") String token, OnSuccess<Result> onSuccess, OnError onError);
- //
- //// @Post(
- //// url = "${url}",
- //// contentType = "application/json"
- //// )
- //// @Retry(maxRetryCount = "3", maxRetryInterval = "100")
- //// Result upgradeToV4ResultSync(@Var("url") String url, @Body RequestSceneProV4 param, OnSuccess<Result> onSuccess, OnError onError);
- //
- //}
|