package com.lesingle.edu.dto.response;

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

import java.util.List;

/**
 * 班级学生列表响应（含班级信息）
 */
@Data
@Builder
@Schema(description = "班级学生列表响应")
public class ClassStudentsResponse {

    @Schema(description = "学生列表")
    private List<StudentResponse> list;

    @Schema(description = "总记录数")
    private Long total;

    @Schema(description = "当前页码")
    private Long pageNum;

    @Schema(description = "每页大小")
    private Long pageSize;

    @Schema(description = "班级信息")
    private ClassInfo classInfo;

    @Data
    @Builder
    @Schema(description = "班级简要信息")
    public static class ClassInfo {
        @Schema(description = "班级 ID")
        private Long id;

        @Schema(description = "班级名称")
        private String name;

        @Schema(description = "年级")
        private String grade;

        @Schema(description = "学生数量")
        private Integer studentCount;

        @Schema(description = "授课次数")
        private Integer lessonCount;
    }
}
