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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import com.red.circle.other.inner.enums.live.RoomContributionCountType;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 房间贡献统计.
 *
 * @author pengshigang on 2022/10/25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RoomContributionCountDTO extends DTO {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  private String id;

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

  /**
   * 类型.
   */
  private RoomContributionCountType type;

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

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

  /**
   * 总额数量.
   */
  private BigDecimal totalQuantity;

  /**
   * 日期.
   */
  private String dateNumber;

  /**
   * 提取数量.
   */
  private BigDecimal withdrawQuantity;

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

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

}
