package com.red.circle.game.fruit.application.dto.clientobject;

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 lisizhe on 2023-11-30 19:18
 */
@Data
@Accessors(chain = true)
public class GameFruitUserBetRecordCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 游戏轮数id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long gameId;

  /**
   * 用户信息.
   */
  private GameUserInfoCO userInfo;

  /**
   * 奖品id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long prizeId;

  /**
   * 用户投注.
   */
  private BigDecimal invest;

  /**
   * 下注类型 1蔬菜 2披萨.
   */
  private Integer betType;

  /**
   * 下注奖励倍数.
   */
  private Integer award;

  /**
   * 下注奖品概率.
   */
  private BigDecimal prob;

  /**
   * 总收益
   */
  private BigDecimal sum;

  /**
   * 是否中奖 1 是 0 否.
   */
  private Integer winner;


}
