package com.reading.platform.dto.response;

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

/**
 * 学生信息响应（含班级、家长信息）
 */
@Data
@Schema(description = "学生信息响应")
public class StudentInfoResponse {

    @Schema(description = "学生 ID", example = "1")
    private String id;

    @Schema(description = "学生姓名", example = "张三")
    private String name;

    @Schema(description = "性别", example = "male")
    private String gender;

    @Schema(description = "出生日期", example = "2018-01-01")
    private String birthDate;

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

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

    @Schema(description = "家长姓名", example = "张父")
    private String parentName;

    @Schema(description = "家长手机号", example = "13800138000")
    private String parentPhone;

    @Schema(description = "课时数", example = "20")
    private Integer lessonCount;

    @Schema(description = "阅读次数", example = "10")
    private Integer readingCount;

    @Schema(description = "创建时间")
    private String createdAt;

    /**
     * 班级简单信息
     */
    @Data
    @Schema(description = "班级简单信息")
    public static class ClassSimpleInfo {
        @Schema(description = "班级 ID")
        private String id;
        @Schema(description = "班级名称")
        private String name;
        @Schema(description = "年级")
        private String grade;
    }
}
