package cn.iocoder.byzs.module.bjdx.controller.admin.questionnaireresult.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 QuestionnaireResultRespVO {

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

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

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

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

    @Schema(description = "试卷得分")
    @ExcelProperty("试卷得分")
    private Double bqrScore;

    @Schema(description = "答题开始时间")
    @ExcelProperty("答题开始时间")
    private LocalDateTime bqrStartTime;

    @Schema(description = "答题结束时间")
    @ExcelProperty("答题结束时间")
    private LocalDateTime bqrEndTime;

    @Schema(description = "答题耗时")
    @ExcelProperty("答题耗时")
    private Integer bqrQuestTime;

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

}