package com.red.circle.other.app.dto.clientobject.user.invite;

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.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 邀请用户-红包基础信息.
 * </p>
 *
 * @author pengshigang
 * @since 2023-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InviteRedPacketUserInfoCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 总额.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long totalAmount;

  /**
   * 当前收集金额.
   */
  private BigDecimal currentAmount;

  /**
   * 差额.
   */
  private BigDecimal remainAmount;

  /**
   * 倒计时.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long countdown;

  /**
   * 自己的邀请码.
   */
  private String thisInviteCode;

  /**
   * 剩余抽奖次数.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long residueNumber;


}
