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

namespace YGNT.QuestionLibrary.Questions.Dto
{
    public class UpdateQuestionDto
    {
        public UpdateQuestionDto()
        {
            Options = new List<UpdateOptionDto>();
        }

        /// <summary>
        /// 试题完整内容(题干+选项)
        /// </summary>
        [Required]
        public string QuestionHtml { get; set; }

        /// <summary>
        /// 题干html
        /// </summary>
        [Required]
        public string StemHtml { get; set; }

        /// <summary>
        /// 答案html
        /// </summary>
        public string AnswerHtml { get; set; }

        /// <summary>
        /// 解析html
        /// </summary>
        public string AnalysisHtml { get; set; }

        /// <summary>
        /// 试题选项
        /// </summary>
        public List<UpdateOptionDto> Options { get; set; }
    }
}