Authored by qinchao

恶意ip

... ... @@ -10,4 +10,9 @@ import lombok.Data;
public class MaliciousIpRecordReq extends PageRequest {
private String beginTime;
private String endTime;
private String ip;
private String type;
private long timestamp;
}
... ...
... ... @@ -377,7 +377,10 @@ public class MaliciousIpController {
@RequestMapping("/getMaliciousDetection")
@ResponseBody
public BaseResponse getMaliciousDetection(String ip,long timestamp,String type) {
public BaseResponse getMaliciousDetection(@RequestBody MaliciousIpRecordReq pageRequest) {
String ip=pageRequest.getIp();
String type=pageRequest.getType();
long timestamp=pageRequest.getTimestamp();
List<MaliciousIpsRecordForbid> recodList=new ArrayList<MaliciousIpsRecordForbid>();
if(StringUtils.isNotBlank(ip)&&timestamp>0){
List<String> datas= ipImpl.getMaliciousDetection(ip,timestamp,type);
... ...