package org.dromara.safety.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.safety.domain.BusQuestionUserAnswer;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 用户试卷存储视图对象 bus_question_user_answer
 *
 * @author lcj
 * @date 2025-03-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusQuestionUserAnswer.class)
public class BusQuestionUserAnswerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 项目id
     */
    @ExcelProperty(value = "项目id")
    private Long projectId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 题库id列表
     */
    @ExcelProperty(value = "题库id列表")
    private List<Long> bankIdList;

    /**
     * 答案列表
     */
    @ExcelProperty(value = "答案列表")
    private List<String> answerList;

    /**
     * 得分
     */
    @ExcelProperty(value = "得分")
    private Long score;

    /**
     * 用时时间（时间戳/秒）
     */
    @ExcelProperty(value = "用时时间", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "时=间戳/秒")
    private Long takeTime;

    /**
     * 及格线/总分（格式：60,100）
     */
    @ExcelProperty(value = "及格线/总分")
    private String pass;

    /**
     * 文件地址
     */
    @ExcelProperty(value = "文件地址")
    private String file;


}
