package com.ruoyi.demo.entity.bo;

import com.ruoyi.common.core.validate.AddGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PlanAddBo {
    @NotBlank(groups = {AddGroup.class},message = "计划名称不能为空")
    private String planName;

    @NotBlank(groups = {AddGroup.class},message = "appkey不能为空")
    private String appkey;

    @NotBlank(groups = {AddGroup.class},message = "供应商Id不能为空")
    private String vendorId;
    @NotBlank(groups = {AddGroup.class},message = "供应商名称不能为空")
    private String vendorName;

    @NotBlank(groups = {AddGroup.class},message = "商品Id不能为空")
    private String goodsId;
    @NotBlank(groups = {AddGroup.class},message = "商品图片不能为空")
    private String goodsImg;
    @NotBlank(groups = {AddGroup.class},message = "商品名称不能为空")
    private String goodsName;
    @NotBlank(groups = {AddGroup.class},message = "海报不能为空")
    private String goodsLogo;
    @NotBlank(groups = {AddGroup.class},message = "商品介绍不能为空")
    private String goodsIntroduce;
    @NotNull(groups = {AddGroup.class},message = "商品价格不能为空")
    private Float goodsPrice;
    private String goodsClassify;

    @NotBlank(groups = {AddGroup.class},message = "广告负责人名称不能为空")
    private String principalName;
    @NotBlank(groups = {AddGroup.class},message = "负责人联系方式不能为空")
    private String principalTelephone;

    @NotNull(groups = {AddGroup.class},message = "计划开始时间不能为空")
    private LocalDateTime planStartTime;
    @NotNull(groups = {AddGroup.class},message = "计划结束时间不能为空")
    private LocalDateTime planEndTime;
    @NotNull(groups = {AddGroup.class},message = "设备不能为空")
    private List<PlanItemAddBo> items;
    @NotBlank(groups = {AddGroup.class},message = "签名不能为空")
    private String sign;
}
