package com.reading.platform.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * 课表模板应用请求
 */
@Data
@Schema(description = "课表模板应用请求")
public class ScheduleTemplateApplyRequest {

    @Schema(description = "班级 ID", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "班级 ID 不能为空")
    private String classId;

    @Schema(description = "应用开始日期", example = "2024-01-01", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始日期不能为空")
    private LocalDate startDate;

    @Schema(description = "应用周数", example = "16")
    private Integer weeks;

}
