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

namespace YGNT.QuestionLibrary.Papers.Dto
{
    public class CreatePaperDto
    {
        public CreatePaperDto()
        {
            PaperQuestions = new List<AppendPaperQuestionDto>();
        }

        /// <summary>
        /// 试卷名称
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 考试时间(时间戳,毫秒)
        /// </summary>
        [Required]
        public long ExamTime { get; set; }

        /// <summary>
        /// 包含学科
        /// </summary>
        [Required]
        public List<int> Disciplines { get; set; }

        /// <summary>
        /// 试卷试题
        /// </summary>
        public List<AppendPaperQuestionDto> PaperQuestions { get; set; }

        /// <summary>
        /// 试卷说明
        /// </summary>
        public string Remark { get; set; }
    }
}