19.后台试卷管理接口
19.1.后台管理试卷列表
查询试卷
-
请求
/manage/listTestPaper 参数: question_bank_id 题库id page 页 page_size 页数
-
响应
{
"code": 0,
"data": {
"page": 1,
"page_size": 10,
"pages": 1,
"total": 3,
"count": 3,
"ts": 1529057248,
"items": [
{
"id": "3",
"name": "测试",
"question_bank_id": "1",
"paper_score": "0",
"paper_time": "30",
"start_paper_indate": "2019-04-09 18:03:24",
"end_paper_indate": "2019-04-09 18:03:24",
"status": "1",
"add_time": "2019-04-09 18:03:36",
"update_time": "2019-04-09 18:03:36"
},
{
"id": "2",
"name": "测试",
"question_bank_id": "1",
"paper_score": "0",
"paper_time": "30",
"start_paper_indate": "2019-04-09 18:03:24",
"end_paper_indate": "2019-04-09 18:03:24",
"status": "1",
"add_time": "2019-04-09 18:03:34",
"update_time": "2019-04-09 18:03:34"
},
{
"id": "1",
"name": "测试",
"question_bank_id": "1",
"paper_score": "0",
"paper_time": "30",
"start_paper_indate": "2019-04-09 18:03:24",
"end_paper_indate": "2019-04-09 18:03:24",
"status": "1",
"add_time": "2019-04-09 18:03:24",
"update_time": "2019-04-09 18:03:24"
}
],
"org_switch": true
}
}
19.2.后台管理新增试卷
新增试卷
-
请求
/manage/addTestPaper 参数:
name 试卷名 必传
question_bank_id 题库id 必传
paper_time 答题时常 必传
start_paper_indate 试卷开始有效期 必传
end_paper_indate 试卷结束有效期 必传
- 响应 { "code": 0 }
19.3.后台管理删除试卷
删除试卷
-
请求
/manage/delTestPaper 参数:
id 必传 obj 必传 obj 为 1 启用 2 禁用 3 删除
- 响应 { "code": 0 }
19.4.后台管理编辑试卷
编辑试卷
-
请求
/manage/editTestPaper 参数:
id 必传
name 试卷名
question_bank_id 题库id
paper_time 答题时常
start_paper_indate 试卷开始有效期 必传
end_paper_indate 试卷结束有效期 必传
- 响应 { "code": 0 }