package com.zbkj.common.response;

import com.zbkj.common.vo.HomeVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 首页商品对象

 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="IndexProductResponse对象", description="首页商品对象")
public class IndexProductResponse {

    @ApiModelProperty(value = "轮播集合")
    private List<HomeVo> homeVos;

    @ApiModelProperty(value = "类型：0商品，1轮播")
    private Integer type = 0;

    @ApiModelProperty(value = "商品id")
    private Integer id;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "商品简介")
    private String storeInfo;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "虚拟销量")
    private Integer ficti;

    @ApiModelProperty(value = "单位名")
    private String unitName;

//    @ApiModelProperty(value = "活动显示排序0=默认，1=秒杀，2=砍价，3=拼团")
//    private String activity;
//
//    @ApiModelProperty(value = "为移动端特定参数")
//    private ProductActivityItemResponse activityH5;

    @ApiModelProperty(value = "购物车商品数量")
    private Integer cartNum = 0;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "标签")
    private String tags = "";

    @ApiModelProperty(value = "标签数组")
    private List<String> tagList = new ArrayList<>();

    @ApiModelProperty(value = "规格 false单 true多")
    private Boolean specType;

}
