Knowledge.cs 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. namespace TEAMModelOS.SDK.Models
  6. {
  7. /// <summary>
  8. ///Teaching materials 教学材料 --- 知识点,知识块
  9. /// </summary>
  10. public class Knowledge : CosmosEntity
  11. {
  12. public Knowledge() {
  13. points = new List<string>();
  14. blocks = new List<Block>();
  15. pk = "Knowledge";
  16. }
  17. [Required(ErrorMessage = "owner 必须设置")]
  18. public string owner { get; set; }
  19. public string scope { get; set; }
  20. /// <summary>
  21. /// 学段id
  22. /// </summary>
  23. [Required(ErrorMessage = "periodId 必须设置")]
  24. public string periodId { get; set; }
  25. /// <summary>
  26. /// 学科id
  27. /// </summary>
  28. [Required(ErrorMessage = "subjectId 必须设置")]
  29. public string subjectId { get; set; }
  30. /// <summary>
  31. /// 知识点
  32. /// </summary>
  33. public List<string> points { get; set; } = new List<string>();
  34. /// <summary>
  35. /// 知识块
  36. /// </summary>
  37. public List<Block> blocks { get; set; } = new List<Block>();
  38. }
  39. public class TagOldNew
  40. {
  41. [Required(ErrorMessage = "_old 必须设置")]
  42. public string _old { get; set; }
  43. [Required(ErrorMessage = "_new 必须设置")]
  44. public string _new { get; set; }
  45. }
  46. public class Block {
  47. public string name { get; set; }
  48. /// <summary>
  49. /// 默认学校添加的 0, 1,区级统一设置的(学校不能删除,不能编辑)。
  50. /// </summary>
  51. public int source { get; set; } = 0;
  52. public List<string> points { get; set; } = new List<string>();
  53. }
  54. /*
  55. {
  56. "id": "123",
  57. "code": "Knowledge-hbcn-subjectId",
  58. "periodId": "uuid",
  59. "points": [
  60. "一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程","函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性",
  61. "常函数","一次函数","二次函数","三次函数","四次函数","五次函数","幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数",
  62. "正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"
  63. ],
  64. "block":[
  65. {
  66. "name": "方程式" ,
  67. "points":["一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程"]
  68. },
  69. {
  70. "name": "函数的特性" ,
  71. "points": ["函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性"]
  72. },
  73. {
  74. "name": "多项式函数" ,
  75. "points": ["常函数","一次函数","二次函数","三次函数","四次函数","五次函数"]
  76. },
  77. {
  78. "name": "基本初等函数" ,
  79. "points": ["幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数"]
  80. },
  81. {
  82. "name": "三角函数" ,
  83. "points":["正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"]
  84. }
  85. ]
  86. }
  87. */
  88. }