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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/10/18 9:35
 */
@Data
@Schema(description = "新增团购商品参数DTO")
public class AddGroupBuyingDTO {
    @Schema(description = "一级商品类型")
    @NotNull(message = "商品类型不能为空")
    private Long goodsType1;

    @Schema(description = "二级商品类型")
    @NotNull(message = "商品类型不能为空")
    private Long goodsType2;

    @Schema(description = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

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

    @Schema(description = "开始销售日期")
    @NotEmpty(message = "开始销售日期不能为空")
    private String startSaleTime;

    @Schema(description = "结束销售日期")
    @NotEmpty(message = "结束销售日期不能为空")
    private String endSaleTime;

    @Schema(description = "开始时段")
    @NotEmpty(message = "开始时段不能为空")
    private String startSalePeriod;

    @Schema(description = "结束时段")
    @NotEmpty(message = "结束时段不能为空")
    private String endSalePeriod;

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

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

    @Schema(description = "团购商品规格信息")
    private List<GroupSpecificationsInfoDTO> specificationsList;
}
