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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户豆子收支.
 * </p>
 *
 * @author pengshigang
 * @since 2021-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BeanIncomeExpenditureDTO extends DTO {

  @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 Timestamp updateTime;

  private Long createUser;

  private Long updateUser;
}
