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>
 * 用户钻石流水(20230718).
 * </p>
 *
 * @author pengshigang on 2023-07-18 16:14
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class DiamondRunningWaterDTO 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 Long originUserId;

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

  /**
   * 来源描述.
   */
  private String originDesc;

  /**
   * 交易钻石.
   */
  private BigDecimal quantity;

  /**
   * 钻石余额.
   */
  private BigDecimal balance;

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

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

  private Timestamp createTime;
  private Timestamp updateTime;
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

}
