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 lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户金币流水.
 * </p>
 *
 * @author pengliang
 * @since 2019-12-07
 */
@Data
@Accessors(chain = true)
public class UserGoldRunningWaterHistoryDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

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

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

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

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

  /**
   * 跟踪id.
   */
  private String trackId;

  /**
   * 类型0.收入 1.消耗.
   */
  private Integer type;

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

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

  /**
   * 状态.
   */
  private String status;

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

  /**
   * 创建时间.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createTime;

  /**
   * 修改时间.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateTime;

  /**
   * 后台操作用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long backOperationUser;

}
