package com.hotwj.platform.config.questionBank.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
public class HotQuestionBankImportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "检测题类型", index = 0, converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=单选,2=多选,3=判断")
    private Long questionType;

    @ExcelProperty(value = "问题描述", index = 1)
    private String questionDesc;

    @ExcelProperty(value = "选项A", index = 2)
    private String optionA;

    @ExcelProperty(value = "选项B", index = 3)
    private String optionB;

    @ExcelProperty(value = "选项C", index = 4)
    private String optionC;

    @ExcelProperty(value = "选项D", index = 5)
    private String optionD;

    @ExcelProperty(value = "选项E", index = 6)
    private String optionE;

    @ExcelProperty(value = "选项F", index = 7)
    private String optionF;

    @ExcelProperty(value = "正确答案", index = 8)
    private String correctAnswers;

    @ExcelProperty(value = "分数", index = 9)
    private Long score;

    @ExcelProperty(value = "难度等级", index = 10, converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=普通,2=困难,3=极难")
    private Long difficulty;

    @ExcelProperty(value = "解析", index = 11)
    private String caseDesc;

    @ExcelProperty(value = "题型分类", index = 12, converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hot_training_type")
    private String trainingTypeCode;
}

