package com.red.circle.wallet.app.dto.clientobject;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品流水.
 *
 * @author pengliang on 2021/1/13
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class CommodityRunningWaterCO extends ClientObject {

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

  /**
   * 标题
   */
  private String title;

  /**
   * 类型 0.收入 1.支出
   */
  private Integer type;

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

  /**
   * 创建时间
   */
  private Date createTime;
}
