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.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户积分来源
 * </p>
 *
 * @author houyong
 * @since 2020-05-13
 */
@Data
@Accessors(chain = true)
public class UserDiamondOriginDTO implements Serializable {

  private static final long serialVersionUID = 1L;

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

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 用户id.
   */
  private Long userId;

  /**
   * 来源用户.
   */
  private Long originUserId;

  /**
   * 关联id.
   */
  private Long relatedId;

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

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

  /**
   * 积分数量.
   */
  private BigDecimal quantity;

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

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


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

}
