package jnpf.model.cultivate.req.paper;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 随机抽题目配置
 */
@Data
public class PaperConfigReq {
    /**
     * Map<String, Map<String, QuestionNum>>  题库 ->配置
     * Map<Integer, QuestionNum>   题目类型->随机抽题的数量配置
     */
    private Map<String, Map<String, QuestionNum>> questionConfig = new HashMap<>();

    /**
     * 分数配置,题型->分数配置
     */
    private Map<String, QuestionScore> scoreConfig;


    @Data
    @AllArgsConstructor
    public static class QuestionNum {
        /**
         * 简单
         */
        private Integer simpleNum;

        /**
         * 一般
         */
        private Integer generalNum;

        /**
         * 困难
         */
        private Integer hardNum;
    }

    /**
     * 分值
     */
    @Data
    public static class QuestionScore {
        /**
         * 简单
         */
        private Integer simpleScore;

        /**
         * 一般
         */
        private Integer generalScore;

        /**
         * 困难
         */
        private Integer hardSore;
    }
}
