package com.red.circle.wallet.infra.database.mongo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

/**
 * @author pengliang on 2023/2/2
 */
@Accessors(chain = true)
@Data
public class UserGoldBalanceCount implements Serializable {

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

  /**
   * 归属平台.
   */
  private String sysOrigin;

  /**
   * 获得糖果.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long earnPoints;

  /**
   * 消费糖果.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long consumptionPoints;

  /**
   * 余额.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long balance;

}
