using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using YGNT.QuestionLibrary.Core.Models;

namespace YGNT.QuestionLibrary.Questions.Dto
{
    public class CreateQuestionDto
    {
        /// <summary>
        /// 试题简称
        /// </summary>
        [Required]
        public string ShortName { get; set; }

        /// <summary>
        /// 学科细分题型Id
        /// </summary>
        [Required]
        public int DisciplineQuestionTypeId { get; set; }

        /// <summary>
        /// 所属学科id
        /// </summary>
        [Required]
        public int DisciplineId { get; set; }

        /// <summary>
        /// 难度
        /// </summary>
        [Required]
        [EnumDataType(typeof(Difficulty))]
        public Difficulty Difficulty { get; set; }

        /// <summary>
        /// 知识点
        /// </summary>
        public List<long> KnowledgePointList { get; set; }

        /// <summary>
        /// 章节id
        /// </summary>
        public long? ChapterId { get; set; }

        /// <summary>
        /// 出题年份
        /// </summary>
        public DateTime? AriseTime { get; set; }

        /// <summary>
        /// 考点
        /// </summary>
        public string CheckPoints { get; set; }

        /// <summary>
        /// 是否激活(默认不激活)
        /// </summary>
        public bool IsActive { get; set; }
    }
}