package com.red.circle.wallet.inner.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户豆子收支.
 * </p>
 *
 * @author pengliang
 * @since 2021-10-11
 */
@Data
@Accessors(chain = true)
public class UserBeanIncomeExpenditureDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 来源系统
   */
  private String sysOrigin;

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

  /**
   * 关联id
   */
  private String associateId;

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

  /**
   * 当前余额
   */
  private BigDecimal balance;

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

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

  /**
   * 来源描述
   */
  private String originName;

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

  /**
   * 备注.
   */
  private String remarks;

}
