package com.seer.teach.admin.request;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 例题请求参数
 * </p>
 *
 * @author ZS
 * @since 2025-10-24
 */
@Data
@Schema(description = "例题请求参数")
public class ExampleQuestionsReq {

    @Schema(description = "知识点ID")
    @NotNull(message = "知识点ID不能为空")
    private Integer knowId;

    @Schema(description = "题型：0其他题型 1选择题 2问答题 3判断题")
    @NotNull(message = "题型不能为空")
    private Integer type;

    @Schema(description = "题干内容")
    @NotBlank(message = "题干内容不能为空")
    private String question;

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

    @Schema(description = "解析内容")
    private String solution;

    private String html;
    
    @Schema(description = "选择题选项")
    private List<QuestionOptionsReq> options;
}