ActivityRecord.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Text.Json;
  5. namespace TEAMModelOS.SDK.Models.Cosmos.Common
  6. {
  7. class ActivityRecord : CosmosEntity
  8. {
  9. /// <summary>
  10. /// 源数据的发布层级 类型 school teacher
  11. /// </summary>
  12. public string owner { get; set; }
  13. /// <summary>
  14. /// 源数据的 code
  15. /// </summary>
  16. public string scode { get; set; }
  17. public string type { get; set; }
  18. //评测模式
  19. public string source { get; set; }
  20. public string name { get; set; }
  21. public long startTime { get; set; }
  22. public long endTime { get; set; }
  23. public string scope { get; set; }
  24. public string school { get; set; }
  25. public string creatorId { get; set; }
  26. public List<string> subjects { get; set; }
  27. public string blob { get; set; }
  28. public string recordUrl { get; set; }
  29. public List<string> classIds { get; set; } = new List<string>();
  30. public long createTime { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
  31. /// <summary>
  32. /// 任务完成状态,-1 未参与,0,未完成, 1已完成
  33. /// </summary>
  34. public int taskStatus { get; set; } = -1;
  35. //写入投票记录,评测作答记录等,自行定义相关规范
  36. public List<JsonElement> extParam { get; set; } = new List<JsonElement>();
  37. }
  38. }