| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.visitCancel,body); |
| | | } |
| | | |
| | | public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | | header.put("tagId", UUID.randomUUID().toString().replace("-", "")); |
| | | String result = ArtemisHttpUtil.doGetArtemis(path, body, null, "application/json", header);// post请求application/json类型参数 |
| | | saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); |
| | | return result; |
| | | |
| | | } |
| | | public static String startDoPostStringArtemis(String[] pathStr,String body ){ |
| | | Map<String, String> path = getPath(pathStr[0]); |
| | | Map<String, String> header = new HashMap<>(); |
| | |
| | | return startDoPostStringArtemis(wxAccessToken,""); |
| | | } |
| | | /** |
| | | * 根据配置微信公众号编号查询微信公众号信息 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String getWxConfig(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.getWxConfig,body); |
| | | } |
| | | /** |
| | | * 根据配置微信公众号编号查询微信公众号信息 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String nhEventPageList(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.nhEventPageList,body); |
| | | } |
| | | |
| | | /** |
| | | * 查询消防设备部件状态 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String fireDeviceStatusSearch(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.fireDeviceStatusSearch,body); |
| | | } |
| | | /** |
| | | * 分页查询消防传感器部件状态 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String sensorStatusSearch(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.sensorStatusSearch,body); |
| | | } |
| | | /** |
| | | * 询消防设备列表 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String fireChannelSearch(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.fireChannelSearch,body); |
| | | } |
| | | |
| | | /** |
| | | * 询消防设备列表 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String fireDeviceSearch(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.fireDeviceSearch,body); |
| | | } |
| | | /** |
| | | * 获取全量用户列表 |
| | | * @param body |
| | | * @return |