Knowledge.cs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 OldNew
  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. public List<string> points { get; set; }
  49. }
  50. /*
  51. {
  52. "id": "123",
  53. "code": "Knowledge-hbcn-subjectId",
  54. "periodId": "uuid",
  55. "points": [
  56. "一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程","函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性",
  57. "常函数","一次函数","二次函数","三次函数","四次函数","五次函数","幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数",
  58. "正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"
  59. ],
  60. "block":[
  61. {
  62. "name": "方程式" ,
  63. "points":["一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程"]
  64. },
  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. }
  83. */
  84. }