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

package com.yami.shop.bean.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.bean.app.dto.SkuDto;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
@ApiModel("搜索商品数据")
public class SearchProdDto {

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

    @ApiModelProperty(value = "商品照片")
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    @ApiModelProperty(value = "商品名字")
    private String prodName;

    @ApiModelProperty(value = "商品库存")
    private Integer stocks;

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

    @ApiModelProperty(value = "商品评论数量")
    private Integer prodCommNumber;

    @ApiModelProperty(value = "好评率")
    private Double positiveRating;

    @ApiModelProperty(value = "好评数量")
    private Integer praiseNumber;

    @ApiModelProperty(value = "商品描述")
    private String brief;

    @ApiModelProperty("距离")
    private String distance;

    @ApiModelProperty("销量")
    private Integer salesVolume;

    @ApiModelProperty("店铺id")
    private Long shopId;
//
//    @ApiModelProperty("自营id")
//    private Long selfLabelId;
//
//    @ApiModelProperty("回头客id")
//    private Long returnLabelId;
//
//    @ApiModelProperty("热卖榜id")
//    private Long hotLabelId;

    @ApiModelProperty("自营标签")
    private String selfLabel;

    @ApiModelProperty("回头客标签")
    private String returnLabel;

    @ApiModelProperty("热卖榜标签")
    private String hotLabel;

    @ApiModelProperty("购物车数量")
    private Long basketTotal;

    @ApiModelProperty(value = "sku列表")
    private List<SkuDto> skuList;

    @ApiModelProperty(value = "banners图片列表")
    private List<String> banners;


}
