简要描述:
- 获取线上作业列表
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | Less | 2019-11-08 |
请求URL:
请求方式:
- POST
请求头:
请求参数:
参数名 | 是否必需 | 类型 | 示例值 | 说明 |
---|---|---|---|---|
schoolId | 是 | string | 100 | 学校ID |
courseId | 否 | string | 3 | 课程ID |
classId | 否 | string | 100 | 班级ID |
userId | 否 | string | 100 | 创建人ID |
examIds | 否 | string | 1,2,3 | 线上作业ID,“,”分割 |
pageNo | 否 | int | 1 | 当前页(分页参数,从1开始) |
pageSize | 否 | int | 10 | 分页大小(默认20) |
mappingKey | 否 | boolean | true | 请求的ID是否需要进行ID转换(具体查看第三方ID映射) |
返回示例:
正确时返回:
{
"status": 0,
"message": "成功",
"data": {
"totalCount": 18,
"list": [
{
"questionCount": 2,
"submitCount": 0,
"markCount": 0,
"paperName": "HBT11061",
"examName": "测试001",
"examId": 2590516,
"userId": 1536352718900,
"examStatus": 3,
"creatorName": "靓仔22",
"paperId": 3010996712,
"fullMark": "18",
"createDateTime": 1573113045000
},
{
"questionCount": 2,
"submitCount": 0,
"markCount": 0,
"paperName": "HBT11061",
"examName": "测试001",
"examId": 2662409,
"userId": 1536352718900,
"examStatus": 3,
"creatorName": "靓仔22",
"paperId": 3010996712,
"fullMark": "18",
"createDateTime": 1573113523000
}
]
}
}
错误时返回:
{
"status": 1,
"message": "未知错误",
"data": null
}
返回参数说明:
参数名 | 类型 | 示例值 | 说明 |
---|---|---|---|
totalCount | long | 2 | 线上作业总数 |
list | list | List | 线上作业列表 |
list:
参数名 | 类型 | 示例值 | 说明 |
---|---|---|---|
examId | long | 100 | 线上作业ID |
examName | string | 2019期末考试测试 | 线上作业名称 |
examStatus | int | 1 | 线上作业状态.1:进行中,3:已完成 |
paperId | long | 100 | 试卷ID |
paperName | string | 2019期末考试测试试卷 | 试卷名称 |
questionCount | int | 22 | 试卷试题数量 |
fullMark | double | 100 | 总分 |
userId | long | 1536352718900 | 用户ID |
creatorName | string | 张三 | 创建人名称 |
createDateTime | timestamp | 1553788800000 | 创建时间 |
submitCount | int | 99 | 作业提交学生人数 |
markCount | int | 90 | 作业已经批改人数 |
备注:
- 更多返回错误代码请看首页的错误代码描述
作者:唐勇林 创建时间:2019-11-08 11:48
最后编辑:yifan.chen 更新时间:2022-12-20 14:39
最后编辑:yifan.chen 更新时间:2022-12-20 14:39