21.前台管理考试相关接口
21.1.试卷下所有试题
请求
创新互联建站坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、做网站、成都外贸网站建设公司、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的宽城网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
/reportexam/allTestQuestions
参数:
paper_id 试卷id 必传- 响应
{
"code": 0,
"data": {
"count": 1,
"ts": 1529057248,
"items": [
{
"id": "1",
"name": "1+1+1+1=?",
"q_options": {
"A": "1",
"B": "2",
"C": "3",
"D": "4",
"E": "5"
},
"paper_id": "2",
"type": "1",
"answers": "D",
"p_score": "10",
"status": "1",
"add_time": "2019-04-11 09:07:27",
"update_time": "2019-04-11 09:07:27"
},
{
"id": "2",
"name": "2+2+2=?",
"q_options": {
"A": "1",
"B": "2",
"C": "4",
"D": "5",
"E": "6"
},
"paper_id": "2",
"type": "1",
"answers": "E",
"p_score": "10",
"status": "1",
"add_time": "2019-04-11 09:11:27",
"update_time": "2019-04-11 09:11:27"
},
],
"org_switch": true
}
}
21.2.每次答题统计成绩并且记录答案
每次答题统计成绩并且记录答案
请求
/Reportexam/editReportExam
参数:
paper_id 试卷id 必传
answer_arr 用户所填答案(json)(试题id与答案)
- 响应
{
"code": 0
}
21.3.结束答题错题展示/成绩展示
请求
/reportexam/listErrorQuestion
参数:
paper_id 试卷id 必传- 响应
{
"code": 0,
"data": {
"count": 1,
"ts": 1529057248,
"items": [
],
"org_switch": true
}
}
21.4.是否可以考试
是否可以考试
请求
/Reportexam/isReportExam
参数:
paper_id 试卷id 必传
- 响应
{
"code": 0
}
21.5.考试入口题库列表
请求
/Reportexam/listQuestionBank
参数:- 响应
{
"code": 0,
"data": {
"count": 1,
"ts": 1529057248,
"items": [
{
"id": "3",
"parent_id": "0",
"name": "测试",
"status": "1",
"add_time": "2018-08-18 14:55:54",
"update_time": "2019-03-28 17:52:26",
"num_test_paper": 2
}
],
"org_switch": true
}
}
21.6.考试入口试卷列表
请求
/Reportexam/allTestPaper
参数:
question_bank_id 题库id
page
page_size- 响应
paper_status (1 是正常状态,2 是超过有效期 ,3 是超时,4 是已交卷)
user_score 是成绩
{
"code": 0,
"data": {
"page": 1,
"page_size": "20",
"pages": 2,
"total": 40,
"count": 20,
"ts": 1555730974,
"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",
"user_score": "0",
"paper_status": "1",
},
{
"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",
"user_score": "0",
"paper_status": "1",
},
{
"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",
"user_score": "0",
"paper_status": "1",
}
],
"org_switch": true
}
}
21.7.结束答题(最终确认答题)
结束答题(最终确认答题)
请求
/Reportexam/okAnswer
参数:
paper_id 试卷id 必传
- 响应
{
"code": 0
}
21.8.结束答题返回正确答案、用户填写答案、答题成绩
请求
/reportexam/resultTestQuestions
参数:
paper_id 试卷id 必传- 响应
{
"code": 0,
"data": {
"count": 1,
"ts": 1529057248,
"items": [
{
"id": "1",
"name": "1+1+1+1=?",
"q_options": {
"A": "1",
"B": "2",
"C": "3",
"D": "4",
"E": "5"
},
"paper_id": "2",
"type": "1",
"p_score": "10",
"status": "1",
"add_time": "2019-04-11 09:07:27",
"update_time": "2019-04-11 09:07:27"
},
{
"id": "2",
"name": "2+2+2=?",
"q_options": {
"A": "1",
"B": "2",
"C": "4",
"D": "5",
"E": "6"
},
"paper_id": "2",
"type": "1",
"p_score": "10",
"status": "1",
"add_time": "2019-04-11 09:11:27",
"update_time": "2019-04-11 09:11:27"
},
],
"org_switch": true
}
}
21.9.考过试卷的列表(我的成绩)
请求
/reportexam/listReportExam
参数:
paper_id 试卷id
pape 页
page_size 条数- 响应
{
"code": 0,
"data": {
"page": 1,
"page_size": "20",
"pages": 2,
"total": 40,
"count": 20,
"ts": 1555730974,
"items": [
{
"id": "7",
"uid": "88",
"paper_id": "10",
"paper_name": null,
"paper_score": "60",
"u_score": "0",
"is_paper": "1",
"answer_result": null,
"start_answer_time": "2019-04-13 10:16:39",
"end_answer_time": "2019-04-13 15:51:42",
"add_time": "2019-04-13 10:16:39",
"update_time": "2019-04-13 15:51:42",
"start_paper_indate": "2019-04-13 00:00:00",
"end_paper_indate": "2019-05-13 00:00:00"
},
{
"id": "9",
"uid": "88",
"paper_id": "11",
"paper_name": null,
"paper_score": "98",
"u_score": "0",
"is_paper": "1",
"answer_result": null,
"start_answer_time": "2019-04-13 15:58:21",
"end_answer_time": "2019-04-13 16:01:01",
"add_time": "2019-04-13 15:58:21",
"update_time": "2019-04-13 16:01:01",
"start_paper_indate": "2019-04-13 00:00:00",
"end_paper_indate": "2019-04-27 00:00:00"
},
],
"org_switch": true
}
}
21.10.考过试卷的列表(我的成绩)
请求
/manage/userReportExam
参数:
paper_id 试卷id
pape 页
page_size 条数- 响应
{
"code": 0,
"data": {
"page": 1,
"page_size": 1000,
"pages": 1,
"total": 2,
"count": 2,
"ts": 1555743313,
"items": [
{
"id": "10",
"uid": "88",
"paper_id": "12",
"paper_name": null,
"paper_score": "109",
"u_score": "0",
"is_paper": "1",
"answer_result": null,
"start_answer_time": "2019-04-13 16:05:27",
"end_answer_time": "2019-04-13 17:29:15",
"add_time": "2019-04-13 16:05:27",
"update_time": "2019-04-13 17:29:15"
},
{
"id": "16",
"uid": "10",
"paper_id": "12",
"paper_name": null,
"paper_score": "109",
"u_score": "60",
"is_paper": "1",
"answer_result": "{\"22\":\"AB\",\"23\":\"ABC\",\"24\":\"A\"}",
"start_answer_time": "2019-04-13 18:30:59",
"end_answer_time": "2019-04-13 18:31:44",
"add_time": "2019-04-13 18:30:59",
"update_time": "2019-04-15 15:08:29"
}
],
"org_switch": true
}
}
网页标题:21.前台管理考试相关接口
URL标题:http://scyingshan.cn/article/jjjiih.html