| | |
| | | saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> querys ,Map<String, String> header ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | String result = ArtemisHttpUtil.doGetArtemis(path, querys, null, null, header); |
| | | saveInterfaceLog(JSONObject.toJSONString(querys),result,path,pathStr[1]); |
| | | return result; |
| | | } |
| | | public static String startDoGetStringArtemisJson(String[] pathStr,Map<String,String> body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | |
| | | */ |
| | | public static String visitOut(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitOut,body); |
| | | } |
| | | /** |
| | | * iccm签离访客预约 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String iccmSignoff(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.iccmSignoff,body); |
| | | } |
| | | /** |
| | | * iccm取消访客预约 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String iccmCancelAppointment(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.iccmCancelAppointment,body); |
| | | } |
| | | /** |
| | | * 访客权限组 |
| | |
| | | * @return |
| | | */ |
| | | public static String ruleEventSearch(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.ruleEventSearch,body); |
| | | Map<String,String> header = new HashMap<>(); |
| | | header.put("User-Id","admin"); |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.ruleEventSearch,null,header,body); |
| | | } |
| | | /** |
| | | * 安防看板-园区安防设备-各类型设备状态数据列表 |
| | |
| | | public static String getFireDevStatusList(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.getFireDevStatusList,body); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询设备的以及下属传感器数据的状态统计 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String findDeviceStatistics(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.findDeviceStatistics,body); |
| | | } |
| | | /** |
| | | *消防看板-4报警信息统计 |
| | | * @param body |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.userOpenidSave,null,header,body); |
| | | } |
| | | /** |
| | | *通过openId或userName等删除绑定信息 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public static String userOpenidDel(Map<String,String> param) { |
| | | Map<String,String> header = new HashMap<>(); |
| | | header.put("userId","admin"); |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.userOpenidDel,param,header); |
| | | } |
| | | /** |
| | | *分页查询设备监测历史数据 |
| | | * @param body |
| | | * @return |