ItemDto.cs 1.6 KB

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