package com.repair.model.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-07-13
 */
@Data
public class insertRepairShiftSettingRequest {

    @NotBlank(message = "班次名称不能为空")
    private String name;

    @NotBlank(message = "开始时间不能为空")
    private String startTime;

    @NotBlank(message = "结束时间不能为空")
    private String endTime;

    @NotEmpty(message = "非工作时间不能为空")
    private List<String> notWorkTime;

    @ApiModelProperty(value = "是否值班 不值班：0；值班：1")
    @NotNull(message = "是否值班不能为空")
    private Integer isDuty;

    @ApiModelProperty(value = "颜色（存储rgb值）")
    @NotBlank(message = "颜色不能为空")
    private String color;

}
