package top.tqx.demo_1.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

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

@Data
public class QuestionListResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("success")
    private Boolean success;

    @JsonProperty("data")
    private List<QuestionItem> data;

    @JsonProperty("total")
    private Long total;

    @JsonProperty("page")
    private Integer page;

    @JsonProperty("page_size")
    private Integer pageSize;

    @JsonProperty("total_pages")
    private Integer totalPages;

    @Data
    public static class QuestionItem implements Serializable {

        private static final long serialVersionUID = 1L;

        @JsonProperty("id")
        private Long id;

        @JsonProperty("question_id")
        private String questionId;

        @JsonProperty("question_type")
        private String questionType;

        @JsonProperty("difficulty")
        private Integer difficulty;

        @JsonProperty("score")
        private BigDecimal score;

        @JsonProperty("status")
        private String status;

        @JsonProperty("document_name")
        private String documentName;

        @JsonProperty("knowledge_base_path")
        private String knowledgeBasePath;

        @JsonProperty("source_chunks_used")
        private Integer sourceChunksUsed;

        @JsonProperty("created_at")
        private String createdAt;
    }
}