package com.red.circle.other.domain.model.user.ability;


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

/**
 * <p>
 * 用户SVip身份.
 * </p>
 *
 * @author pengshigang on 2022-08-22
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UserSVip implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户当前积分.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userCurrentIntegral;

  /**
   * 用户当前等级.
   */
  private String userCurrentLevel;

  /**
   * 等级完整积分.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long levelIntegral;

  /**
   * 最大可以升到几级.
   */
  private String maxUpLevel;

  /**
   * 如升级后剩余积分.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long upLevelSurplusIntegral;

  /**
   * 到期时间.
   */
  private Timestamp expiredTime;

}
