package com.tzy.dto;

import com.tzy.pojo.item.Sku;
import com.tzy.pojo.item.Spu;
import lombok.Data;
import org.teasoft.bee.osql.annotation.Entity;

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

@Data
@Entity("spu")
public class SpuDTO implements Serializable {
    private Integer id;
    private Long spuSoldStock;
    private Long spuTotalStock;
    private String spuName;
    private String title;
    private BigDecimal minSpuPrice;
    /**
     * 封面图
     */
    private String carouselImgUrl;
    private String spuDesc;
    private String secondCatName;
    private String type;
    private Integer minPoint;
    private Long merchantId;
    private String merchantName;
    private String merchantAvatar;
    private String unit;
    private String actType;
    /**
     * 轮播图
     */
    private String detailImgUrl;
    /**活动icon*/
    private String icon_url;
    /**开售时间*/
    private Date soldTime;

    /**明细*/
    private List<Sku> skuList;
    /**相关产品*/
    private List<Spu> linkSpuList;
}
