SchoolSetting.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace TEAMModelOS.SDK.Models
  7. {
  8. /// <summary>
  9. /// id hbcn 学校编码
  10. /// code SchoolSetting
  11. ///
  12. /// </summary>
  13. public class SchoolSetting :CosmosEntity
  14. {
  15. /// <summary>
  16. /// 开启互评
  17. /// </summary>
  18. public int hpappraise { get; set; } = 0;
  19. /// <summary>
  20. /// 政策文件
  21. /// </summary>
  22. public List<Policy> policy { get; set; } = new List<Policy>();
  23. /// <summary>
  24. /// 资源文件
  25. /// </summary>
  26. public List<Policy> resource { get; set; } = new List<Policy>();
  27. /// <summary>
  28. /// 第三方
  29. /// </summary>
  30. public List<Policy> third { get; set; } = new List<Policy>();
  31. /// <summary>
  32. /// 课堂记录的标签
  33. /// </summary>
  34. public HashSet<string> lessonTag { get; set; } = new HashSet<string>();
  35. public LessonSetting lessonSetting { get; set; }= new LessonSetting();
  36. /// <summary>
  37. /// 五育数据统计规则
  38. /// </summary>
  39. public OverallEducationSetting overallEducationSetting { get; set; } = new OverallEducationSetting();
  40. }
  41. public class OverallEducationSetting
  42. {
  43. // newest最新 avg平均 sum总和
  44. public string sports { get; set; } = "newest";
  45. public string art { get; set; } = "newest";
  46. public string labour { get; set; } = "sum";
  47. public string intelligence { get; set; } = "avg";
  48. public string virtue { get; set; } = "sum";
  49. public List<ReviewLevel> reviewLevel { get; set; } = new List<ReviewLevel>() {
  50. new ReviewLevel { code="A", value = new List<double> { 85,100 } },
  51. new ReviewLevel { code="B", value = new List<double> { 75,85 } },
  52. new ReviewLevel { code="C", value = new List<double> { 60,75 } } ,
  53. new ReviewLevel { code="D", value = new List<double> { 0,60 } } ,
  54. };
  55. /// <summary>
  56. /// 五育默认初始值
  57. /// </summary>
  58. public double overallEducationInit { get; set; } = 60;
  59. /// <summary>
  60. /// 推送到五育数据的评测类型
  61. /// </summary>
  62. public List<string> examTypes { get; set; } = new List<string>();
  63. public List<CodeDouble> intelligenceWeight { get; set; } = new List<CodeDouble>() {
  64. new CodeDouble { code = "attitude", value = 0.25 },//态度
  65. new CodeDouble { code = "cooperate", value = 0.25 },//合作
  66. new CodeDouble { code = "ability", value = 0.25 },//能力
  67. new CodeDouble { code = "standard", value = 0.25 },//水平
  68. };
  69. }
  70. public class CodeDouble
  71. {
  72. //attitude cooperate ability standard
  73. public double value { get; set; }
  74. public string code { get; set; }
  75. }
  76. public class LessonSetting
  77. {
  78. /// <summary>
  79. /// 是否开启自动清理 1 开启,0未开启
  80. /// </summary>
  81. public int openAutoClean { get; set; }
  82. /// <summary>
  83. /// 保留多少天
  84. /// </summary>
  85. public int expireDays { get; set; }
  86. public List<LessonSettingCond> conds { get; set; }
  87. }
  88. public class LessonSettingCond
  89. {
  90. public string key { get; set; }
  91. public double val { get; set; }
  92. public string type { get; set; }
  93. }
  94. }