package com.red.circle.other.app.dto.clientobject.sys;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * @author pengliang on 2022/5/10
 */
@Data
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
public class OauthAccessTokenCO extends ClientObject {

  private static final long serialVersionUID = 1L;

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

  /**
   * 密钥id.
   */
  String secretId;

  /**
   * 令牌.
   */
  String token;

  /**
   * 过期时间.
   */
  Long expiredTime;

}
