package com.repair.model.request;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Author: binguo
 * @Date: 2023/7/13 星期四 15:21
 * @Description: com.repair.model.request
 * @Version: 1.0
 */
@Data
public class insertRepairClassesRequest {

    /**
     * 用户ID
     */
    @NotNull(message = "用户不能为空")
    private int userId;

    /**
     * 开始日期
     */
    @DateTimeFormat(pattern="”yyyy-MM-dd”")
    private LocalDate startDate;

    /**
     * 班次数据
     */
    @NotEmpty(message = "班次数据不能为空")
    private List<String> shiftIds;
}
