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"
}
*/
///
/// 学生集合的 学生活动相关列表。
///
public class StuActivity : CosmosEntity
{
///
/// 源数据的发布层级 类型 school teacher
///
public string owner { get; set; }
///
/// 源数据的 code
///
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 subjects { get; set; }
public string blob { get; set; }
public string recordUrl { get; set; }
public List classIds { get; set; } = new List();
public long createTime { get; set; }= DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
///
/// 任务完成状态,-1 未参与,0,未完成, 1已完成
///
public int taskStatus { get; set; } = -1;
//写入投票记录,评测作答记录等,自行定义相关规范
// public List extParam { get; set; } = new List();
public Dictionary ext { get; set; } = new Dictionary();
/// 评分状态,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;
}
}