package com.liquidnet.service.goblin.param.shouqianba.response.data;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(value = "商城商品接口响应数据")
public class MallProductsQueryData {

    @ApiModelProperty(value = "商品spuId")
    private String spuId;

    @ApiModelProperty(value = "商品图片")
    private List<String> converImages;

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

    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "商品规格")
    private List<Sku> skuResults;


    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    @ApiModel(value = "商品规格")
    public static class Sku {

        @ApiModelProperty(value = "库存类型")
        private Integer stockType;

        @ApiModelProperty(value = "商品skuId")
        private String skuId;

        @ApiModelProperty(value = "库存值")
        private BigDecimal quantity;

        @ApiModelProperty(value = "规格标题")
        private String skuTitle;

        @ApiModelProperty(value = "规格名称")
        private String skuName;

        @ApiModelProperty(value = "价格")
        private Long price;
    }
}
