package top.tqx.demo_1.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ExamRecordResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    private String recordId;

    private String paperId;

    private String answerType;

    private String paperTitle;

    private Long userId;

    private String status;

    private BigDecimal totalScore;

    private Integer timeSpent;

    private LocalDateTime startTime;

    private LocalDateTime submitTime;

    private LocalDateTime gradedTime;

    private List<ExamPaperQuestion> questions;

    private List<AnswerDetail> answers;

    @Data
    public static class ExamPaperQuestion implements Serializable {
        private static final long serialVersionUID = 1L;
        private String questionId;
        private String questionType;
        private Integer difficulty;
        private BigDecimal score;
        private String content;
    }

    @Data
    public static class AnswerDetail implements Serializable {
        private static final long serialVersionUID = 1L;
        private String questionId;
        private String questionType;
        private String stem;
        private Object userAnswer;
        private Object correctAnswer;
        private BigDecimal score;
        private BigDecimal maxScore;
        private Boolean isCorrect;
        private String feedback;
    }
}