package com.seer.teach.mall.response;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

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

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "商品详情响应参数")
public class GoodsDetailsResp {

    @Schema(description = "商品id")
    private Integer id;

    @Schema(description = "商品库存")
    private Integer goodsNumber;

    @Schema(description = "商品价格")
    private BigDecimal retailPrice;

    @Schema(description = "商品所属分类的ID")
    private Integer categoryId;

    @Schema(description = "商品图片")
    private String primaryPicUrl;

    @Schema(description = "商品销量")
    private Integer sellVolume;

    @Schema(description = "商品在列表中展示的图片链接")
    private List<String> listPicUrl;

    @Schema(description = "商品收藏数量")
    private Integer collectCount;

    @Schema(description = "商品简要描述")
    private String goodsBrief;

    @Schema(description = "商品详细描述")
    private String goodsDesc;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "是否收藏 0未收藏 1收藏")
    private Integer isCollect;

    @Schema(description = "收藏时间")
    private LocalDateTime collecteTime;

    private List<GoodsSpecificationResp> items;
}