|
|
@@ -7,6 +7,7 @@ import java.util.Map;
|
|
|
|
|
|
import io.reactivex.Observable;
|
|
|
import retrofit2.http.Body;
|
|
|
+import retrofit2.http.GET;
|
|
|
import retrofit2.http.POST;
|
|
|
|
|
|
/**
|
|
|
@@ -14,6 +15,11 @@ import retrofit2.http.POST;
|
|
|
* @author 詹子聪
|
|
|
* @date 2020/7/27 11:08
|
|
|
* Description: 主接口
|
|
|
+ * -10001 Incorrect json input format
|
|
|
+ * -10002 url image cannot be downloaded (N/A in our case)
|
|
|
+ * -10003 SDK error
|
|
|
+ * -10004 Base64 decode error
|
|
|
+ * -10005 Segmentation Error. No Name and Address can be extracted
|
|
|
*/
|
|
|
public interface ApiService {
|
|
|
/**
|
|
|
@@ -21,4 +27,11 @@ public interface ApiService {
|
|
|
*/
|
|
|
@POST("/api/jphandwritingocr/jpExpressHwOcr")
|
|
|
Observable<BaseResponse<OcrResult>> getOcrResult(@Body Map<String, Object> body);
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 测试
|
|
|
+ */
|
|
|
+ @GET(".")
|
|
|
+ Observable<BaseResponse<Object>> getJsonTest();
|
|
|
}
|