ShapesHttpClient.java 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.fdkankan.scene.httpclient;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.dtflys.forest.annotation.*;
  4. import com.dtflys.forest.callback.OnError;
  5. import com.dtflys.forest.callback.OnSuccess;
  6. import com.fdkankan.scene.dto.ListSegParamDTO;
  7. import com.fdkankan.scene.httpclient.callback.CommonErrorCallback;
  8. import com.fdkankan.scene.httpclient.callback.CommonSuccessCallback;
  9. import com.fdkankan.scene.httpclient.callback.CommonSuccessCondition;
  10. import com.fdkankan.scene.vo.BaseSceneParamVO;
  11. import com.fdkankan.scene.vo.TraceEvidenceInfoListParamVo;
  12. import com.fdkankan.scene.vo.TraceEvidenceListParamVO;
  13. import com.fdkankan.web.response.ResultData;
  14. import java.util.List;
  15. @Success(condition = CommonSuccessCondition.class)
  16. public interface ShapesHttpClient {
  17. @Post("${host}/service/shapes/seg/list")
  18. ResultData<List<JSONObject>> shapesSegList(@Var("host") String host, @JSONBody ListSegParamDTO param, OnSuccess onSuccess, OnError onError);
  19. @Post("${host}/service/shapes/seg/updateByIds")
  20. ResultData<Void> shapesUpdateByIds(@Var("host") String host, @JSONBody JSONObject param, OnSuccess onSuccess, OnError onError);
  21. @Post("${host}/service/shapes/seg/updateBySids")
  22. ResultData<Void> shapesUpdateBySids(@Var("host") String host, @JSONBody JSONObject param, OnSuccess onSuccess, OnError onError);
  23. @Post("${host}/service/shapes/seg/deleteByIds")
  24. ResultData<Void> deleteByIds(@Var("host") String host, @JSONBody Object param, OnSuccess onSuccess, OnError onError);
  25. // @Post("${host}/service/manage/inner/traceEvidenceInfoList")
  26. // ResultData traceEvidenceInfoList(@Var("host") String host, @Header("token") String token, @JSONBody TraceEvidenceInfoListParamVo param);
  27. //
  28. // @Get("${host}/service/manage/inner/refreshTraceEvidenceInfoList/${kno}")
  29. // ResultData refreshTraceEvidenceInfoList(@Var("host") String host, @Header("token") String token, @Var("kno") String kno);
  30. //
  31. // @Post("${host}/service/manage/inner/addMediaLibrary")
  32. // ResultData addMediaLibrary(@Var("host") String host, @Header("token") String token, @JSONBody JSONObject param);
  33. //
  34. // @Post("${host}/service/manage/inner/addMediaLibrarys")
  35. // ResultData addMediaLibrarys(@Var("host") String host, @Header("token") String token, @JSONBody JSONObject param);
  36. //
  37. // @Get("${host}/service/manage/inner/getCaseByNum?num=${num}")
  38. // ResultData getCaseByNum(@Var("host") String host, @Var("num") String num);
  39. }