You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
943 B
42 lines
943 B
package com.fr.plugin.ymrt.sms.eucp.inter.http.v1.dto.request; |
|
|
|
import java.io.Serializable; |
|
/** |
|
* @Author fr.open |
|
* @Date 2020/9/15 |
|
* @Description |
|
**/ |
|
public class BaseRequest implements Serializable{ |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
/** |
|
* 请求时间 |
|
*/ |
|
private long requestTime = System.currentTimeMillis(); |
|
|
|
/** |
|
* 请求有效时间(秒)<br/> |
|
* 服务器接受时间与请求时间对比,如果超过有效时间,拒绝此次请求<br/> |
|
* 防止被网络抓包不断发送同一条请求<br/> |
|
* 默认1分钟有效期 |
|
*/ |
|
private int requestValidPeriod = 60; |
|
|
|
public long getRequestTime() { |
|
return requestTime; |
|
} |
|
|
|
public void setRequestTime(long requestTime) { |
|
this.requestTime = requestTime; |
|
} |
|
|
|
public int getRequestValidPeriod() { |
|
return requestValidPeriod; |
|
} |
|
|
|
public void setRequestValidPeriod(int requestValidPeriod) { |
|
this.requestValidPeriod = requestValidPeriod; |
|
} |
|
|
|
}
|
|
|