package com.red.circle.auth.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * @author pengliang
 * @since 2020/9/25 0:12
 */
@Deprecated
@Data
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AccessToken implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long userId;

  /**
   * 2023/02/03 系统平台.
   */
  String sysOrigin;

  /**
   * 用户token.
   */
  String token;

  /**
   * 账号状态.
   */
  String status;

  /**
   * 过期时间.
   */
  Timestamp expireTime;
}
