package com.lesingle.edu.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 Long courseId;

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

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

    @NotBlank(message = "标题不能为空")
    @Schema(description = "课时标题")
    private String title;

    @NotNull(message = "课时日期不能为空")
    @Schema(description = "课时日期")
    private LocalDate lessonDate;

    @Schema(description = "开始时间")
    private LocalTime startTime;

    @Schema(description = "结束时间")
    private LocalTime endTime;

    @Schema(description = "地点")
    private String location;

    @Schema(description = "备注")
    private String notes;

}
