SchoolSetting.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 string lesson { get; set; } = "sum";
  50. public List<ReviewLevel> reviewLevel { get; set; } = new List<ReviewLevel>() {
  51. new ReviewLevel { code="A", value = new List<double> { 85,100 } },
  52. new ReviewLevel { code="B", value = new List<double> { 75,85 } },
  53. new ReviewLevel { code="C", value = new List<double> { 60,75 } } ,
  54. new ReviewLevel { code="D", value = new List<double> { 0,60 } } ,
  55. };
  56. /// <summary>
  57. /// 五育默认初始值
  58. /// </summary>
  59. public double overallEducationInit { get; set; } = 60;
  60. /// <summary>
  61. /// 推送到五育数据的评测类型
  62. /// </summary>
  63. public List<string> examTypes { get; set; } = new List<string>();
  64. public List<CodeDouble> intelligenceWeight { get; set; } = new List<CodeDouble>() {
  65. new CodeDouble { code = "attitude", value = 0.10 ,name ="态度"},//态度
  66. new CodeDouble { code = "cooperate", value = 0.10,name="合作" },//合作
  67. new CodeDouble { code = "ability", value = 0.10 ,name ="能力"},//能力
  68. new CodeDouble { code = "standard", value = 0.70,name= "态度" },//水平
  69. };
  70. }
  71. public class CodeLong
  72. {
  73. public long value { get; set; }
  74. public string code { get; set; }
  75. }
  76. public class CodeDouble
  77. {
  78. //attitude cooperate ability standard
  79. public double value { get; set; }
  80. public string code { get; set; }
  81. public string name { get; set; }
  82. }
  83. public class LessonSetting
  84. {
  85. /// <summary>
  86. /// 是否开启自动清理 1 开启,0未开启
  87. /// </summary>
  88. public int openAutoClean { get; set; }
  89. /// <summary>
  90. /// 保留多少天
  91. /// </summary>
  92. public int expireDays { get; set; }
  93. public List<LessonSettingCond> conds { get; set; }
  94. }
  95. public class LessonSettingCond
  96. {
  97. public string key { get; set; }
  98. public double val { get; set; }
  99. public string type { get; set; }
  100. }
  101. }