123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Text.Json;
- namespace TEAMModelOS.SDK.Models
- {
- /*
- /vote/
- /survey/
- /exam/
- /learn/
- /homework/
- {
- "id": "业务id",
- "code": "学校编码-学生id",
- "scode": "业务code",
- "type": "业务类型, vote投票 survey问卷 exam评测 learn学习活动 homework作业活动 课程 ",
- "name": "业务名称",
- "startTime": 1616411700000,
- "endTime": 1616411700000,
- "scope": "school/private",
- "pk": "Activity",
- "school": "hbcn",
- "creatorId": "habook001",
- "subjects": [
- ""
- ],
- "classes":["class1 记录当前活动 选择包含这个学生的班级"]
- "blob": "业务详情blob详情位置",
- "recordUrl": "暂时不对其设计,隐藏规则调用,因为结算再次写入需要RU开销,学生参与业务的记录xxx/id/xxxx.json"
- }
- */
- /// <summary>
- /// 学生集合的 学生活动相关列表。
- /// </summary>
- public class StuActivity : CosmosEntity
- {
- /// <summary>
- /// 源数据的发布层级 类型 school teacher
- /// </summary>
- public string owner { get; set; }
- /// <summary>
- /// 源数据的 code
- /// </summary>
- public string scode { get; set; }
- public string type { get; set; }
- //评测模式
- public string source { get; set; }
- public string name { get; set; }
- public long startTime { get; set; }
- public long endTime { get; set; }
- public string scope { get; set; }
- public string school { get; set; }
- public string creatorId { get; set; }
- public List<string> subjects { get; set; }
- public string blob { get; set; }
- public string recordUrl { get; set; }
- public List<string> classIds { get; set; } = new List<string>();
-
- public long createTime { get; set; }= DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
- /// <summary>
- /// 任务完成状态,-1 未参与,0,未完成, 1已完成
- /// </summary>
- public int taskStatus { get; set; } = -1;
- //写入投票记录,评测作答记录等,自行定义相关规范
- // public List<JsonElement> extParam { get; set; } = new List<JsonElement>();
- public Dictionary<string, JsonElement> ext { get; set; } = new Dictionary<string, JsonElement>();
- /// 评分状态,0,未评分, 1已评分
- public int sStatus { get; set; } = 0;
- //评测 纸本1或者书面问答0
- public int qamode { get; set; } = 0;
- //标记作业活动是否比交
- public bool mustSubmit { get; set; } = false;
- //标记问卷是否重复提交 0 否 1 是
- public int isSub { get; set; } = 0;
- }
- }
|