ItemDto.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.Collections.Generic;
  2. namespace TEAMModelOS.Models.Dto
  3. {
  4. public class ItemDto
  5. {
  6. public string id { get; set; }
  7. public string pid { get; set; }
  8. public Exercise exercise { get; set; } = new Exercise();
  9. //public double render { get; set; }
  10. public List<info> item { get; set; } = new List<info>();
  11. public class Exercise {
  12. public List<string> answer { get; set; } = new List<string>();
  13. public string explain { get; set;}
  14. public string type { get; set; }
  15. public int opts { get; set; }
  16. public List<string> knowledge { get; set; } = new List<string>();
  17. public int? field { get; set; }
  18. public int level { get; set; }
  19. public string periodId { get; set; }
  20. public List<string> gradeIds { get; set; } = new List<string>();
  21. public string subjectId { get; set; }
  22. public List<string> children { get; set; } = new List<string>();
  23. public string scope { get; set; }
  24. public double score { get; set; }
  25. //public List<Repair> repair { get; set; }
  26. }
  27. }
  28. public class CodeValue
  29. {
  30. public string code { get; set; }
  31. public string value { get; set; }
  32. }
  33. public class info
  34. {
  35. public string type { get; set; } = "Html";
  36. public string uid { get; set; }
  37. public string question { get; set; }
  38. public List<CodeValue> option { get; set; } = new List<CodeValue>();
  39. }
  40. }