package com.liquidnet.service.goblin.dto.manage;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.liquidnet.commons.lang.util.DateUtil;
import com.liquidnet.service.goblin.dto.manage.vo.GoblinGoodsAnticipateValueVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author liquidnet
 * @since 2022-04-07
 */
@ApiModel(value = "GoblinGoodsAnticipateParam", description = "创建预约")
@Data
public class GoblinGoodsAnticipateAddParam {

    /**
     * 预约名称
     */
//    @ApiModelProperty(value = "预约名称")
//    @NotBlank(message = "预约名称")
//    private String name;

    /**
     * 预约规则
     */
    @ApiModelProperty(required = true,value = "预约规则")
    @NotBlank(message = "预约规则")
    private String rule;

    @ApiModelProperty(required = true, value = "预约类型（1：预约提醒，2：预约获得购买资格）")
    @NotNull(message = "预约类型")
    private int type;

    @ApiModelProperty(value = "预约人数（达到一定人数可以预约）")
    private Integer people;

    @ApiModelProperty(required = true,value = "sku信息")
    @NotNull(message = "skuList并不能为空")
    private List<GoblinGoodsAnticipateValueAddParam> list;


}
