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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
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 QuestionnaireResultDetailsRespVO {

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

    @Schema(description = "用户id")
    @ExcelProperty("用户id")
    private Long bqrdUserId;

    @Schema(description = "答卷结果id")
    @ExcelProperty("答卷结果id")
    private Long bqrdQuestionnaireResultId;

    @Schema(description = "问卷id")
    @ExcelProperty("问卷id")
    private Long bqrdQuestionnaireId;

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

    @Schema(description = "选择")
    @ExcelProperty("选择")
    private Long bqrdQuestOptionId;

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

    @Schema(description = "试题得分")
    @ExcelProperty("试题得分")
    private Double bqrdQuestSorce;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}