package com.red.circle.other.inner.model.dto.tools;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author pengliang
 * @since 2020/9/25 0:12
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AccessTokenDTO 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;
}
