package com.red.circle.console.infra.database.mongo.count.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户金币流水分析.
 *
 * @author pengliang on 2022/11/17
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CurrencyAnalyzeUser implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 系统.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

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

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

}
