/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.discount.comment.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tz_discount_prod")
public class DiscountProd implements Serializable {
    private static final long serialVersionUID = -5694537556987462303L;
    /**
     * 满减 商品 联合id
     */
    @TableId
    private Long discountProdId;

    /**
     * 满减id
     */

    private Long discountId;

    /**
     * 商品id
     */

    private Long prodId;

    /**
     * 商品主图
     */
    @TableField(exist = false)
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    /**
     * 商品图片列表
     */
    @TableField(exist = false)
    private String imgs;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String prodName;

}
