请求
/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
}
}
每次答题统计成绩并且记录答案
请求
/Reportexam/editReportExam
参数:
paper_id 试卷id 必传
answer_arr 用户所填答案(json)(试题id与答案)
请求
/reportexam/listErrorQuestion
参数:
paper_id 试卷id 必传
{
"code": 0,
"data": {
"count": 1,
"ts": 1529057248,
"items": [
],
"org_switch": true
}
}
是否可以考试
请求
/Reportexam/isReportExam
参数:
paper_id 试卷id 必传
请求
/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
}
}
请求
/Reportexam/allTestPaper
参数:
question_bank_id 题库id
page
page_size
{
"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
}
}
结束答题(最终确认答题)
请求
/Reportexam/okAnswer
参数:
paper_id 试卷id 必传
请求
/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
}
}
请求
/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
}
}
请求
/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
}
}
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。