...
|
...
|
@@ -93,12 +93,13 @@ public class HostInfoCtrl { |
|
|
|
|
|
@RequestMapping("/getHostInfoByIps")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<List<HostInfo>> getHostInfoByIps(String ips) throws Exception {
|
|
|
public BaseResponse<List<HostInfo>> getHostInfoByIps( @RequestBody String ips) throws Exception {
|
|
|
List<String> hostIps = JSON.parseArray(ips,String.class);
|
|
|
log.info("getHostInfoByIps with param is {}", ips);
|
|
|
List<HostInfo> hostInfos = hostInfoService.getHostInfoByIps(hostIps);
|
|
|
BaseResponse<List<HostInfo>> response = new BaseResponse<List<HostInfo>>(hostInfos);
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|