package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品活动表
 * </p>
 *
 * @author Djh
 * @since 2020-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_pluss_official_goods")
public class OfficialGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField("goodName")
    private String goodName;

    /**
     * 商品描述
     */
    @TableField("goodDesc")
    private String goodDesc;

    /**
     * 商品价格
     */
    @TableField("goodPrice")
    private BigDecimal goodPrice;

    /**
     * 商品状态1：未上架 2：上架中3：已下架
     */
    private String status;

    /**
     * 商品图片跳转地址
     */
    @TableField("toImgUrl")
    private String toImgUrl;

    /**
     * 商品图片地址
     */
    @TableField("imgUrl")
    private String imgUrl;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    @TableField(exist = false)
    private String address;

    /**
     * 是否包邮
     */
    @TableField("isPostage")
    private Integer isPostage;

    /**
     * 邮费
     */
    @TableField("postageFee")
    private BigDecimal postageFee;

    /**
     * 抵扣规则
     */
    @TableField("deductRule")
    private Integer deductRule;

    /**
     * 抵扣规则
     */
    @TableField("deductValue")
    private BigDecimal deductValue;


}
