Commit 6acbae04 authored by yanzg's avatar yanzg

接口文档的支持

parent 3f9144fb
......@@ -41,4 +41,8 @@ public final class SystemContants {
* 点
*/
public static final String POINT = ".";
/**
* 设置有效期
*/
public static final long DAY_UNIT = 24 * 60 * 60 * 1000;
}
package com.yanzuoguang.token;
import com.yanzuoguang.util.contants.SystemContants;
import com.yanzuoguang.util.vo.MapRow;
/**
......@@ -22,7 +23,7 @@ public class TokenData {
/**
* 有效时间
*/
private long expire = Long.MAX_VALUE;
private long expire = 0;
/**
* 缓存的数据
......@@ -35,6 +36,7 @@ public class TokenData {
private boolean write = false;
public TokenData() {
this.expire = System.currentTimeMillis() + SystemContants.DAY_UNIT;
}
public TokenData(String token, String dataPwd, MapRow data, long expire) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment