| | |
| | | public static String getTodoListPage(Map<String, String> body) throws Exception{ |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.getTodoListPage,body); |
| | | } |
| | | |
| | | /** |
| | | *消防看板-4温湿度数据 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String temperatureHumidityDataStatistic(String body) { |
| | | return startDoPostStringArtemisAdmin(HKConstants.InterfacePath.temperatureHumidityDataStatistic,body); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取门禁点列表 |
| | | * @param body |
| | |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | public static String startDoPostStringArtemisAdmin(String[] pathStr,String body){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("userId", "admin"); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | |
| | | public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | | |
| | | } |
| | | |
| | | |
| | | public static String startDoPostStringArtemis(String[] pathStr,Map<String, String> querys,Map<String, String> header,String body){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | String result = ArtemisHttpUtil.doPostStringArtemis(path, body, querys, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(body,result,path,pathStr[1]); |
| | | return result; |
| | | |
| | | } |
| | | /** |
| | | * 签离访客预约 |
| | |
| | | public static String findAlarmBaseDataStatistic(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.findAlarmBaseDataStatistic,body); |
| | | } |
| | | |
| | | /** |
| | | *安防看板-- b |
| | | * @param body |