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 updateRepairClassesRequest {
    /**
     * 数据ID
     */
    @NotNull(message = "数据ID不能为空")
    private Integer id;

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

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

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