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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import com.alibaba.excel.annotation.*;
import cn.iocoder.byzs.framework.excel.core.annotations.DictFormat;
import cn.iocoder.byzs.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 课程-试题-选项 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CourseQuestOptionRespVO {

    @Schema(description = "课程试题选项id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("课程试题选项id")
    private Long id;

    @Schema(description = "试题id")
    @ExcelProperty("试题id")
    private Integer cqoQuestId;

    @Schema(description = "选项")
    @ExcelProperty("选项")
    private String cqoValue;

    @Schema(description = "选项内容")
    @ExcelProperty("选项内容")
    private String cqoOption;

    @Schema(description = "选项分值")
    @ExcelProperty("选项分值")
    private Double cqoSocre;

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

}