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.math.BigDecimal;
import java.util.Date;

/**
 * @Author haoxuyang
 * @Date 2024/10/18 9:32
 */
@Data
@Schema(description = "团购商品列表响应参数VO")
public class GroupBuyingListVO {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "商品类型")
    private Long goodsType;

    @Schema(description = "商品类型名称")
    private String goodsTypeName;

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

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

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

    @Schema(description = "结束销售日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    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 BigDecimal originalPrice;

    @Schema(description = "团购价格")
    private BigDecimal groupBuyingPrice;
}
