Knowledge.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 Block {
  40. public string name { get; set; }
  41. public List<string> points { get; set; }
  42. }
  43. /*
  44. {
  45. "id": "123",
  46. "code": "Knowledge-hbcn-subjectId",
  47. "periodId": "uuid",
  48. "points": [
  49. "一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程","函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性",
  50. "常函数","一次函数","二次函数","三次函数","四次函数","五次函数","幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数",
  51. "正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"
  52. ],
  53. "block":[
  54. {
  55. "name": "方程式" ,
  56. "points":["一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程"]
  57. },
  58. {
  59. "name": "函数的特性" ,
  60. "points": ["函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性"]
  61. },
  62. {
  63. "name": "多项式函数" ,
  64. "points": ["常函数","一次函数","二次函数","三次函数","四次函数","五次函数"]
  65. },
  66. {
  67. "name": "基本初等函数" ,
  68. "points": ["幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数"]
  69. },
  70. {
  71. "name": "三角函数" ,
  72. "points":["正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"]
  73. }
  74. ]
  75. }
  76. */
  77. }