package com.red.circle.wallet.infra.database.mongo.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 lombok.Data;
import lombok.experimental.Accessors;

/**
 * 货币分析.
 *
 * @author pengliang on 2021/9/2
 */
@Data
@Accessors(chain = true)
public class CurrencyAnalyzeUserItem implements Serializable {

  private static final long serialVersionUID = 1L;

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

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

  /**
   * 名称.
   */
  private String originName;

  /**
   * 来源.
   */
  private String origin;

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

  /**
   * 占百分比.
   */
  private BigDecimal percentage;

}
