FdkankanMiniClient.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //package com.fdkankan.scene.httpclient;
  2. //
  3. //import com.dtflys.forest.annotation.Get;
  4. //import com.dtflys.forest.annotation.Header;
  5. //import com.dtflys.forest.annotation.Post;
  6. //import com.dtflys.forest.annotation.Retry;
  7. //import com.dtflys.forest.annotation.Success;
  8. //import com.dtflys.forest.annotation.Var;
  9. //import com.dtflys.forest.callback.OnError;
  10. //import com.dtflys.forest.callback.OnSuccess;
  11. //import com.fdkankan.common.response.Result;
  12. //import java.util.Map;
  13. //import com.fdkankan.scene.bean.CameraBean;
  14. //import com.fdkankan.scene.bean.UserIncrementBean;
  15. //import com.fdkankan.scene.callback.FdkkMiniReqSuccessCondition;
  16. //
  17. ///**
  18. // * <p>
  19. // * TODO
  20. // * </p>
  21. // *
  22. // * @author dengsixing
  23. // * @since 2022/4/24
  24. // **/
  25. //@Success(condition = FdkkMiniReqSuccessCondition.class)
  26. //public interface FdkankanMiniClient {
  27. //
  28. // @Get(url="{url}"
  29. //// ,interceptor = TLogForestInterceptor.class 加这个拦截器,打印的tlog日志会详细一些,包括头信息等等
  30. // )
  31. // @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  32. // Result<String> getDataSyncType(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
  33. //
  34. // @Get("{url}")
  35. // @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  36. // Result<UserIncrementBean> getUserIncrementByCameraId(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
  37. //
  38. // @Get("{url}")
  39. // @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  40. // Result<CameraBean> getCameraByCameraId(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
  41. //
  42. //// @Get(url="{url}")
  43. //// @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  44. //// Result<SceneProV3> getSceneProByNum(@Var("url") String url, OnSuccess<Result> onSuccess, OnError onError);
  45. //
  46. // @Post(url="{url}")
  47. // @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  48. // Result<Map<String, Object>> getIsLogin(@Var("url") String url, @Header("token") String token, OnSuccess<Result> onSuccess, OnError onError);
  49. //
  50. //// @Post(
  51. //// url = "${url}",
  52. //// contentType = "application/json"
  53. //// )
  54. //// @Retry(maxRetryCount = "3", maxRetryInterval = "100")
  55. //// Result upgradeToV4ResultSync(@Var("url") String url, @Body RequestSceneProV4 param, OnSuccess<Result> onSuccess, OnError onError);
  56. //
  57. //}