package com.red.circle.other.inner.model.dto.user.invite;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 邀请新用户-红包抽奖记录.
 * </p>
 *
 * @author pengshigang on 2023-12-05 17:21
 */
@Data
@Accessors(chain = true)
public class InviteRedPacketDrawLogDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 系统.
   */
  private String sysOrigin;

  /**
   * 红包记录id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long redPacketId;

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

  /**
   * 用户资料信息.
   */
  private UserProfileDTO userProfile;

  /**
   * 奖励类型.
   */
  private String awardType;

  private String awardTypeName;

  /**
   * 奖励数量.
   */
  private BigDecimal awardNumber;

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

  /**
   * 当前红包进度额度.
   */
  private BigDecimal currentAmount;

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

  /**
   * 抽奖人设备号.
   */
  private String imei;

  /**
   * 抽奖人IP.
   */
  private String ip;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

}
