Token.java 576 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.example.base;
  2. import lombok.Data;
  3. import java.sql.Timestamp;
  4. /**
  5. * Token属性定义
  6. *
  7. * @author yys
  8. */
  9. @Data
  10. public class Token {
  11. /**
  12. * Token令牌
  13. */
  14. private String accessToken;
  15. /**
  16. * 过期时间
  17. */
  18. private Timestamp expireTime;
  19. /**
  20. * 刷新access_token
  21. */
  22. private String refreshToken;
  23. public Token() {
  24. super();
  25. }
  26. public Token(String accessToken, Timestamp expireTime) {
  27. super();
  28. this.accessToken = accessToken;
  29. this.expireTime = expireTime;
  30. }
  31. }