package com.seer.teach.admin.response;

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

import java.io.Serializable;
import java.util.List;

/**
 * 知识点拆分响应类
 */
@Data
@Schema(description = "知识点拆分响应")
public class KnowledgePointSplitResp implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "拆分后的知识点名称")
    private String knowledgePointName;

    @Schema(description = "知识点总结")
    private String summary;

    @Schema(description = "视频脚本")
    private String videoScript;

    @Schema(description = "示例题目列表")
    private List<ExampleQuestion> exampleQuestions;

    @Data
    @Schema(description = "示例题目")
    public static class ExampleQuestion implements Serializable {

        private static final long serialVersionUID = 1L;

        @Schema(description = "题目类型")
        private Integer type;

        @Schema(description = "题目内容")
        private String question;

        @Schema(description = "选项列表（选择题专用）")
        private List<QuestionOptionsResp> options;

        @Schema(description = "答案")
        private String answer;

        @Schema(description = "解析")
        private String explanation;
    }
}