package com.reading.platform.dto.request;

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

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@Schema(description = "课时创建请求")
public class LessonCreateRequest {

    @NotNull(message = "课程ID不能为空")
    @Schema(description = "课程ID")
    private String courseId;

    @Schema(description = "班级ID")
    private String classId;

    @NotNull(message = "教师ID不能为空")
    @Schema(description = "教师ID")
    private String teacherId;

    @NotBlank(message = "标题不能为空")
    @Schema(description = "课时标题", example = "绘本阅读第一课时")
    private String title;

    @NotNull(message = "课时日期不能为空")
    @Schema(description = "课时日期", example = "2024-01-15")
    private LocalDate lessonDate;

    @Schema(description = "开始时间", example = "09:00")
    private LocalTime startTime;

    @Schema(description = "结束时间", example = "10:00")
    private LocalTime endTime;

    @Schema(description = "地点", example = "教室 101")
    private String location;

    @Schema(description = "备注", example = "请提前准备教具")
    private String notes;

}
