| | |
| | | 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<>(); |
| | |
| | | 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 |
| | | */ |
| | | public static String minitorDataSearch(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.minitorDataSearch,body); |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.minitorDataSearchV1,body); |
| | | } |
| | | /** |
| | | * 统计园区总体的安防设备数量,在线数、在线率、离线数、离线率 |