/*
 *      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.point.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.point_gateway.enums.PointTypeEnum;

import java.math.BigDecimal;

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

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;

	/**
	 * 手机号码
	 */
	@ApiModelProperty(value = "手机号码",required = true)
	private String phone;

	/**
	 * 活动作品id(积分赠送)
	 */
	@ApiModelProperty(value = "活动作品id(积分赠送)")
	private Long activeProductId;

	/**
	 * 助力道具Id(移动积分兑换)
	 */
	@ApiModelProperty(value = "助力道具Id(移动积分兑换)")
	private Long helpGoodsId;

	/**
	 * 积分商品id(普法积分兑换)
	 */
	@ApiModelProperty(value = "积分商品id(普法积分兑换)")
	private Long pointGoodsId;

	/**
	 * 积分(普法积分兑换商品、移动积分兑换道具、普法积分赠送)
	 */
	@ApiModelProperty(value = "积分(普法积分兑换商品、移动积分兑换道具、普法积分赠送)")
	private BigDecimal point;

	/**
	 * 积分类型(移动积分兑换道具:'CMCC_POINT_EXCHANGE',普法积分赠送:'PUFA_POINT_SEND',普法积分兑换:'PUFA_POINT_EXCHANGE')
	 */
	@ApiModelProperty(value = "积分类型(移动积分兑换道具:'CMCC_POINT_EXCHANGE',普法积分赠送:'PUFA_POINT_SEND',普法积分兑换:'PUFA_POINT_EXCHANGE')")
	private PointTypeEnum pointType;
}
