...
|
...
|
@@ -70,5 +70,17 @@ public class HostInfoCtrl { |
|
|
return hostInfoService.getHostInfoById(id);
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getHostInfoByIP")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<HostInfo> getHostInfoByIp(String ip) throws Exception {
|
|
|
log.info("getHostInfoByIp with param is {}", ip);
|
|
|
HostInfo hostInfo= hostInfoService.getHostInfoByHostIp(ip);
|
|
|
BaseResponse<HostInfo> resp=new BaseResponse<HostInfo>();
|
|
|
if(hostInfo!=null){
|
|
|
resp.setData(hostInfo);
|
|
|
}
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
|