Question.cs 687 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. namespace HTEXLib.Models
  6. {
  7. public class Question :Item
  8. {
  9. public new string type = "Html";
  10. //题干
  11. [Required(ErrorMessage = "{0} 必须填写")]
  12. public string question { get; set; }
  13. // 选项 单选 多选 判断
  14. public List<CodeValue> option { get; set; }
  15. /// <summary>
  16. /// 选项布局 grid 网格布局 或 row 行布局
  17. /// </summary>
  18. public string layout { get; set; }
  19. public HTEXLib.Models.HTEX.ShapeStyle style { get; set; } = new Models.HTEX.ShapeStyle();
  20. }
  21. }