| | |
| | | *访客权限组列表查询(分页) |
| | | * @return |
| | | */ |
| | | public BaseResponse<PrivilegeGroupResponse> privilegeGroup(PrivilegeGroupRequest param){ |
| | | public BaseResponse<PrivilegeGroupListResponse> privilegeGroup(PrivilegeGroupRequest param){ |
| | | log.error("【海康访客权限组列表查询】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.privilegeGroup(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<PrivilegeGroupResponse> >(){}; |
| | | BaseResponse<PrivilegeGroupResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | new TypeReference< BaseResponse<PrivilegeGroupListResponse> >(){}; |
| | | BaseResponse<PrivilegeGroupListResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | log.error("【海康访客权限组列表查询】================成功====\n"+res); |
| | | return result; |
| | | }catch (Exception e){ |
| | |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *门禁设备查询(分页) |
| | | * @return |
| | | */ |
| | | public BaseResponse<AcsDeviceListResponse> acsDeviceList(AcsDeviceListRequest param){ |
| | | log.error("【海康门禁设备查询】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.acsDeviceList(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<AcsDeviceListResponse> >(){}; |
| | | BaseResponse<AcsDeviceListResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | log.error("【海康门禁设备查询】================成功====\n"+res); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康门禁设备查询】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | |