package com.xiaoniu.system.groupgoods.groupbuying.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/10/18 9:47
 */
@Data
@Schema(description = "团购商品详情响应参数VO")
public class GroupBuyingDetailsVO {
    @Schema(description = "ID")
    private Long id;

    @Schema(description = "一级商品类型")
    private String goodsType1;

    @Schema(description = "二级商品类型")
    private String goodsType2;

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

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

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "开始销售日期")
    private Date startSaleTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "结束销售日期")
    private Date endSaleTime;

    @Schema(description = "开始时段")
    private String startSalePeriod;

    @Schema(description = "结束时段")
    private String endSalePeriod;

    @Schema(description = "成团人数数量")
    private Integer clusteringNum;

    @Schema(description = "团购商品状态（1-上架 2-下架）")
    private Integer status;

    @Schema(description = "商品规格列表")
    private List<SpecificationsListVO> specificationsList = new ArrayList<>();

}
