package com.red.circle.console.app.dto.clienobject.count.ops;

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.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 用户金币流水分析.
 *
 * @author pengliang on 2022/11/17
 */
@Data
@Accessors(chain = true)
public class CurrencyAnalyzeUserLogCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  private String id;

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

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

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

  /**
   * 数量.
   */
  private BigDecimal quantity;

  /**
   * 每项数量.
   */
  private Map<Integer, BigDecimal> groupTypeQuantity;

  /**
   * 统计日期.
   */
  private Integer dateNumber;

  /**
   * 分析来源.
   */
  private List<CurrencyAnalyzeUserLogItemCO> items;

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

}
