using Edu.Common.Enum.Course;
using Edu.Common.Enum.Exam;
using Edu.Common.Enum.Question;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.Exam
{
    /// <summary>
    /// 试卷模板数据格式
    /// </summary>
    public class ExamTemplate
    {

        /// <summary>
        /// 问题类型编号【GroupType=1时使用】
        /// </summary>
        public int QuestionTypeId { get; set; }

        /// <summary>
        /// 问题类型Key【GroupType=1时使用】
        /// </summary>
        public string QuestionTypeKey { get; set; }

        /// <summary>
        /// 问题类型名称
        /// </summary>
        public string QuestionTypeName { get; set; }

        /// <summary>
        /// 总分
        /// </summary>
        public decimal QuestionScore { get; set; }

        /// <summary>
        /// 题型描述
        /// </summary>
        public string QuestionDesc { get; set; }

        /// <summary>
        /// 选择类型(1-题库随机，2-题库难易程度,3-题库按照分类选题)
        /// </summary>
        public int ChooseType { get; set; }

        /// <summary>
        /// 选择题目数量【ChooseType=1时使用】
        /// </summary>
        public int ChooseNum { get; set; }

        /// <summary>
        /// 难易程度选题【ChooseType=2时使用】
        /// </summary>
        public List<DifficultyTypeItem> ChooseList { get; set; }

    }

    /// <summary>
    /// 难易程度
    /// </summary>
    public class DifficultyTypeItem
    {
        /// <summary>
        /// 难易程度(1-易，2-中，3-难)
        /// </summary>
        public DifficultyTypeEnum DifficultyType { get; set; }

        /// <summary>
        /// 选择题目数量【ChooseType=2时使用】
        /// </summary>
        public int ChooseNum { get; set; }
    }
}
