21.前台管理考试相关接口-创新互联

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
                }
        }

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站标题:21.前台管理考试相关接口-创新互联
当前路径:http://scjbc.cn/article/djejsh.html

其他资讯