StuActivity.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json;
  5. namespace TEAMModelOS.SDK.Models
  6. {
  7. /*
  8. /vote/
  9. /survey/
  10. /exam/
  11. /learn/
  12. /homework/
  13. {
  14. "id": "业务id",
  15. "code": "学校编码-学生id",
  16. "scode": "业务code",
  17. "type": "业务类型, vote投票 survey问卷 exam评测 learn学习活动 homework作业活动 课程 ",
  18. "name": "业务名称",
  19. "startTime": 1616411700000,
  20. "endTime": 1616411700000,
  21. "scope": "school/private",
  22. "pk": "Activity",
  23. "school": "hbcn",
  24. "creatorId": "habook001",
  25. "subjects": [
  26. ""
  27. ],
  28. "classes":["class1 记录当前活动 选择包含这个学生的班级"]
  29. "blob": "业务详情blob详情位置",
  30. "recordUrl": "暂时不对其设计,隐藏规则调用,因为结算再次写入需要RU开销,学生参与业务的记录xxx/id/xxxx.json"
  31. }
  32. */
  33. /// <summary>
  34. /// 学生集合的 学生活动相关列表。
  35. /// </summary>
  36. public class StuActivity : CosmosEntity
  37. {
  38. /// <summary>
  39. /// 源数据的发布层级 类型 school teacher
  40. /// </summary>
  41. public string owner { get; set; }
  42. /// <summary>
  43. /// 源数据的 code
  44. /// </summary>
  45. public string scode { get; set; }
  46. public string type { get; set; }
  47. //评测模式
  48. public string source { get; set; }
  49. public string name { get; set; }
  50. public long startTime { get; set; }
  51. public long endTime { get; set; }
  52. public string scope { get; set; }
  53. public string school { get; set; }
  54. public string creatorId { get; set; }
  55. public List<string> subjects { get; set; }
  56. public string blob { get; set; }
  57. public string recordUrl { get; set; }
  58. public List<string> classIds { get; set; } = new List<string>();
  59. public long createTime { get; set; }= DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
  60. /// <summary>
  61. /// 任务完成状态,-1 未参与,0,未完成, 1已完成
  62. /// </summary>
  63. public int taskStatus { get; set; } = -1;
  64. //写入投票记录,评测作答记录等,自行定义相关规范
  65. // public List<JsonElement> extParam { get; set; } = new List<JsonElement>();
  66. public Dictionary<string, JsonElement> ext { get; set; } = new Dictionary<string, JsonElement>();
  67. /// 评分状态,0,未评分, 1已评分
  68. public int sStatus { get; set; } = 0;
  69. //评测 纸本1或者书面问答0
  70. public int qamode { get; set; } = 0;
  71. //标记作业活动是否比交
  72. public bool mustSubmit { get; set; } = false;
  73. //标记问卷是否重复提交 0 否 1 是
  74. public int isSub { get; set; } = 0;
  75. }
  76. }