...
|
...
|
@@ -34,7 +34,7 @@ public class ReportTest { |
|
|
public void testList(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_REPORT_LIST,"GET",params,token);
|
|
|
System.out.println(response);
|
...
|
...
|
@@ -46,39 +46,25 @@ public class ReportTest { |
|
|
@Test
|
|
|
public void testDetail(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("report_id","77");
|
|
|
params.put("report_id","141");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_REPORT_DETAIL,"GET",params,token);
|
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 健康评分接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testScore(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("report_id","77");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMap(URL_REPORT_SCORE,"GET",params);
|
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告指标解释查询接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testItemInfo(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("itemId","10");
|
|
|
params.put("status","0");
|
|
|
params.put("status","2");
|
|
|
params.put("isPureHtml","false");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_ITEM_INFO,"GET",params,token);
|
|
|
System.out.println(response);
|
...
|
...
|
@@ -94,7 +80,7 @@ public class ReportTest { |
|
|
params.put("status","1");
|
|
|
params.put("isPureHtml","true");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_ITEM_INFO,"GET",params,token);
|
|
|
System.out.println(response);
|
...
|
...
|
@@ -110,7 +96,7 @@ public class ReportTest { |
|
|
params.put("stime","2010-01-01 10:32:00");
|
|
|
params.put("etime","2019-12-22 10:32:00");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_ITEM_GRAPH,"GET",params,token);
|
|
|
System.out.println(response);
|
...
|
...
|
@@ -124,7 +110,7 @@ public class ReportTest { |
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("report_id","77");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("type",Constants.KEY_ID);
|
|
|
params.put("sign",HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMapWithToken(URL_COMPARE,"POST",params,token);
|
|
|
System.out.println(response);
|
...
|
...
|
|