package com.lesingle.edu.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * 课后记录列表响应（lesson + students 结构，与前端对齐）
 */
@Data
@Builder
@Schema(description = "课后记录列表响应")
public class StudentRecordsResponse {

    @Schema(description = "课时信息")
    private LessonInfo lesson;

    @Schema(description = "学生列表（含记录）")
    private List<StudentWithRecordResponse> students;

    @Data
    @Builder
    @Schema(description = "课时简要信息")
    public static class LessonInfo {
        @Schema(description = "课时 ID")
        private Long id;
        @Schema(description = "状态")
        private String status;
        @Schema(description = "班级名称")
        private String className;
    }
}
