LessStats.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using Microsoft.Table;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using TEAMModelOS.SDK.Context.Attributes.Azure;
  8. namespace TEAMModelOS.SDK.Models.Cosmos.BI.BITable
  9. {
  10. /// <summary>
  11. /// BI课例数据实体
  12. /// </summary>
  13. [TableName(Name = "BIStats")]
  14. public class LessStats: TableEntity
  15. {
  16. public LessStats()
  17. {
  18. //PartitionKey LessonYear 记录一年的数据 天 RowKey 2022 一年所有; 2022-学校编码 学校一年所有
  19. //PartitionKey LessonHour 记录一天的数据 小时 RowKey 20220615 一天的记录; 20220615-学校编码 学校一天的记录
  20. }
  21. /// <summary>
  22. /// Hiteach开课记录
  23. /// </summary>
  24. public string open { get; set; }
  25. /// <summary>
  26. /// 课例记录
  27. /// </summary>
  28. public string lesson { get; set; }
  29. /// <summary>
  30. /// 时间 当PartitionKey是LessonHour yyyyMMdd
  31. /// </summary>
  32. public string time { get; set; }
  33. /// <summary>
  34. /// 学校编号
  35. /// </summary>
  36. public string school { get; set; }
  37. }
  38. /// <summary>
  39. /// BI活动 0 Exam评测 1 Survey问卷 2 Vote投票 3 Homework作业活动
  40. /// </summary>
  41. [TableName(Name = "BIStats")]
  42. public class TableActivityStats : TableEntity
  43. {
  44. public TableActivityStats()
  45. {
  46. //PartitionKey LessonYear 记录一年的数据 天 RowKey 2022 一年所有; 2022-学校编码 学校一年所有
  47. //PartitionKey LessonHour 记录一天的数据 小时 RowKey 20220615 一天的记录; 20220615-学校编码 学校一天的记录
  48. }
  49. /// <summary>
  50. /// 评测
  51. /// </summary>
  52. public string exam { get; set; }
  53. /// <summary>
  54. /// 问卷
  55. /// </summary>
  56. public string survey { get; set; }
  57. /// <summary>
  58. /// 投票活动
  59. /// </summary>
  60. public string vote { get; set; }
  61. /// <summary>
  62. /// 作业活动
  63. /// </summary>
  64. public string homework { get; set; }
  65. /// <summary>
  66. /// 时间
  67. /// PartitionKey是LessonHour yyyyMMdd
  68. /// PartitionKey是LessonYear yyyy
  69. /// </summary>
  70. public string time { get; set; }
  71. /// <summary>
  72. /// 学校编号
  73. /// </summary>
  74. public string school { get; set; }
  75. }
  76. }