/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.sing.heat.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.gateway.heat_gateway.enums.HeatTypeEnum;

import java.math.BigDecimal;

/**
 * 积分兑换记录表实体类
 *
 * @author BladeX
 * @since 2021-11-09
 */
@Data
@TableName("sing_heat_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HeatRecord对象", description = "积分兑换记录表")
public class HeatRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;
	/**
	 * 用户手机号码
	 */
	@ApiModelProperty(value = "用户手机号码")
	private String phone;
	/**
	 * 积分商品id(热力值兑换)
	 */
	@ApiModelProperty(value = "积分商品id(热力值兑换)")
	private Long pointGoodsId;
	/**
	 * 活动作品id(热力值赠送)
	 */
	@ApiModelProperty(value = "活动作品id(热力值赠送)")
	private Long activeProductId;
	/**
	 * 票数
	 */
	@ApiModelProperty(value = "票数")
	private Long voteCount;
	/**
	 * 热力值
	 */
	@ApiModelProperty(value = "热力值")
	private BigDecimal heatValue;
	/**
	 * 热力值兑换:'HEAT_VALUE_EXCHANGE',热力值赠送:'HEAT_VALUE_SEND'
	 */
	@ApiModelProperty(value = "热力值兑换:'HEAT_VALUE_EXCHANGE',热力值赠送:'HEAT_VALUE_SEND'")
	private HeatTypeEnum heatType;


}
