package cn.iocoder.byzs.module.bjdx.controller.admin.courseconfig.vo;

import cn.iocoder.byzs.framework.excel.core.annotations.DictFormat;
import cn.iocoder.byzs.framework.excel.core.convert.DictConvert;
import cn.iocoder.byzs.module.bjdx.controller.admin.coursequestion.vo.CourseQuestionRespVO;
import cn.iocoder.byzs.module.bjdx.dal.dataobject.coursequestion.CourseQuestionDO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 课程配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CourseConfigRespVO {

    @Schema(description = "课程配置id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课程配置id")
    private Long id;

    @Schema(description = "课程id")
    @ExcelProperty("课程id")
    private Long ccCourseId;

    @Schema(description = "课程暂停时长")
    @ExcelProperty("课程暂停时长")
    private Integer ccTime;

    @Schema(description = "试题来源")
    @ExcelProperty("试题来源")
    private String ccQuestSource;

    @Schema(description = "试题内容")
    @ExcelProperty("试题内容")
    private String ccQuestContent;

    @Schema(description = "试题选项")
    @ExcelProperty("试题选项")
    private String ccQuestOption;

    @Schema(description = "ai问题提示")
    private String ccAiQuestTip;

    @Schema(description = "ai答案")
    @ExcelProperty("ai答案")
    private String ccAiAnswer;

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

    @Schema(description = "试题id")
    @ExcelProperty("试题id")
    private Long ccQuestId;

    @Schema(description = "是否显示答案")
    @ExcelProperty(value = "是否显示答案", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String ccAnswerJudge;

    @Schema(description = "课程-试题")
    private CourseQuestionRespVO courseQuestion;

}