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.Cosmos.School
  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. [Required(ErrorMessage = "scope 必须设置")]
  20. public string scope { get; set; }
  21. /// <summary>
  22. /// 学段id
  23. /// </summary>
  24. [Required(ErrorMessage = "periodId 必须设置")]
  25. public string periodId { get; set; }
  26. /// <summary>
  27. /// 学科id
  28. /// </summary>
  29. [Required(ErrorMessage = "subjectId 必须设置")]
  30. public string subjectId { get; set; }
  31. /// <summary>
  32. /// 知识点
  33. /// </summary>
  34. public List<string> points { get; set; }
  35. /// <summary>
  36. /// 知识块
  37. /// </summary>
  38. public List<Block> blocks { get; set; }
  39. }
  40. public class Block {
  41. public string name { get; set; }
  42. public List<string> points { get; set; }
  43. }
  44. /*
  45. {
  46. "id": "123",
  47. "code": "Knowledge-hbcn-subjectId",
  48. "periodId": "uuid",
  49. "points": [
  50. "一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程","函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性",
  51. "常函数","一次函数","二次函数","三次函数","四次函数","五次函数","幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数",
  52. "正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"
  53. ],
  54. "block":[
  55. {
  56. "name": "方程式" ,
  57. "points":["一元一次方程","二元一次方程","一元二次方程","直线方程","三元一次方程","鸡兔同笼问题","微积分方程"]
  58. },
  59. {
  60. "name": "函数的特性" ,
  61. "points": ["函数有界性","函数单调性","函数奇偶性","函数周期性","函数连续性","函数凹凸性"]
  62. },
  63. {
  64. "name": "多项式函数" ,
  65. "points": ["常函数","一次函数","二次函数","三次函数","四次函数","五次函数"]
  66. },
  67. {
  68. "name": "基本初等函数" ,
  69. "points": ["幂函数","指数函数","对数函数","三角函数","反三角函数","常数函数"]
  70. },
  71. {
  72. "name": "三角函数" ,
  73. "points":["正弦函数","余弦函数","正切函数","余切函数","正割函数","余割函数","正矢函数","余矢函数","半正矢函数","半余矢函数","外正割函数","外余割函数"]
  74. }
  75. ]
  76. }
  77. */
  78. }