/*
 *      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.modules.ldt.pointdetail.entity;

import java.math.BigDecimal;

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

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-07-29
 */
@Data
@TableName("ldt_point_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PointDetail对象", description = "PointDetail对象")
public class PointDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 商场id
	 */
	@ApiModelProperty(value = "商场id")
	private Long mallId;
	/**
	 * 商店id
	 */
	@ApiModelProperty(value = "商店id")
	private Long shopId;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private Long userId;
	/**
	 * 会员id
	 */
	@ApiModelProperty(value = "会员id")
	private Long memberId;
	/**
	 * 积分类型： 1-商场赠送 2-商店赠送 3-用户支付 4-积分授权
	 */
	@ApiModelProperty(value = "积分类型： 1-商场赠送 2-商店赠送 3-用户支付 4-积分授权")
	private Integer type;

	/**
	 * 名称,当type=1时为商场名称,type=2,3时为商店名称,type=4时为积分渠道名称
	 */
	@ApiModelProperty(value = "名称,当type=1时为商场名称,type=2,3时为商店名称,type=4时为积分渠道名称")
	private String name;

	/**
	 * logo,当type=1时为商场logo,type=2,3时为商店logo,type=4时为积分渠道logo
	 */
	@ApiModelProperty(value = "logo,当type=1时为商场logo,type=2,3时为商店logo,type=4时为积分渠道logo")
	private String logo;
	/**
	 * 所送积分
	 */
	@ApiModelProperty(value = "所送积分")
	private BigDecimal point;
	/**
	 * 积分价值
	 */
	@ApiModelProperty(value = "积分价值")
	private BigDecimal pointValue;

	/**
	 * 国信积分服务费
	 */
	@ApiModelProperty(value = "国信积分服务费")
	private BigDecimal gxRewardPointValue;

	/**
	 * 支付金额
	 */
	@ApiModelProperty(value = "支付金额")
	private BigDecimal price;

	/**
	 * 关联的支付id
	 */
	@ApiModelProperty(value = "关联的支付记录id")
	private Long billRecordId;

	/**
	 * 关联的支付状态
	 */
	@ApiModelProperty(value = "关联的支付记录状态")
	private Integer billRecordStatus;

	/**
	 * 渠道id
	 */
	@ApiModelProperty(value = "渠道id")
	private Long channelId;






}
