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

原文地址:https://blog.51cto.com/livestreaming/2383479

时间: 2024-11-06 07:10:17

21.前台管理考试相关接口的相关文章

接口规范 13. 文件上传及管理相关接口

13 文件上传及管理相关接口 这组接口实现视频资源的上传及管理,为视频转码和发布提供支持.上传的服务器上的视频文件,经过转码发布后形成可以对外播出的在线视频资源.本小节描述文件上传和管理的接口,转码接口在下一章节说明. 13.1.文件上传接口用途通过HTTP POST协议上传视频文件.文件上传接口是一个特殊的接口,接口位置与其他接口有差异.上传协议采用HTTP POST协议,提交form的数据采用multipart/form-data编码(enctype="multipart/form-data

驱动移植过程中DMA内存相关接口替换

1. 相关概念介绍及移植简介 1.1 物理地址与总线地址         1)物理地址是与CPU相关的.在CPU的地址信号线上产生的就是物理地址,在程序指令中的的虚拟地址经过段映射和页面映射后,就生成了物理地址,这个物理地址被放到CPU的地址线上.         2)总线地址,顾名思义,是与总线相关的,外设使用的就是总线地址.         在x86平台下,外设的I/O地址是独立的,即有专门的指令访问外设I/O,I/O地址就是所谓的"总线地址".而"物理地址"就

Servlet相关接口和Servlet的生命周期

创建一个Servlet类最直接的方式是实现javax.servlet.Servlet接口,Servlet接口的定义如下,其中定义了5个方法,Servlet的生命周期就是通过这几个方法体现的: 1 public interface Servlet { 2 public void init(ServletConfig config) throws ServletException; 3 4 public ServletConfig getServletConfig(); 5 6 public voi

Linux之进程管理(2)相关命令之四

Linux之进程管理(2)相关命令之四 设置或调整进程优先级命令: nice  rnice nice 命令 nice - run a program with modified scheduling priority 运行一个程序时修改调度其进程优先级 格式及用法: nice  [options]  [command [args]] -n  # :#表示要设置此程序nice值,-20到19,值越下,优先级越高 注:-20到19的每个nice值分别对应(Centos5中为100-139,CentO

Linux之进程管理(2)相关命令之一

Linux之进程管理(2)相关命令之一 procps工具命令对进程管理的使用:   ps   pgrep  pidof  pkill  pstree ps  命令 ps  (Process State)  :report a snapshot of the current processes. 查看当前进程的快照信息表 此命令支持3种风格: 1.SysV风格:选项前必须加-符号,如ps  -ef 2.BSD风格:选项前可以不加-符号,如ps  aux 3.GUN风格:之前两个-符号,类似长选项,

【Spring源码分析系列】ApplicationContext 相关接口架构分析

[原创文章,转载请注明出处][本文地址]http://www.cnblogs.com/zffenger/p/5813470.html 在使用Spring的时候,我们经常需要先得到一个ApplicationContext对象,然后从该对象中获取我们配置的Bean对象.ApplicationContext隶属于org.springframework.context,是SpringFramework中Bean的管理者,为SpringFramework的诸多功能提供支撑作用. 下图是Spring-4.3

玩转linux第四天之用户及组管理类相关命令(二)

1    前言 本文档主要介绍用户及组管理类相关命令如:useradd .usermod.passwd.userdel.groupadd.groupmod\gpasswd.groupdel.hage,chsh,chfn,.id,w,who,whoami.wck,gourpck.su,并提供相应案例解释其含义. 学习这些基础命令是一个Linux爱好者需要具备的首要条件,让小编带领你们进入Linux的世界看看它的一颦一笑. 读者对象 本文档(本指南)主要适用于以下人员: Linux爱好者 2    

交换机之自动介质相关接口交叉

当不知道电缆类型时,可以使用自动介质相关接口交叉让设备两端自动协商成合适的电缆 SW1(config)#interface fastEthernet 0/1 SW1(config-if)#mdix ? auto  Enable automatic MDI crossover detection on this interface SW1(config-if)#mdix auto SW2(config)#interface fastEthernet 0/1 SW2(config-if)#mdix

[Android]蓝牙相关接口及方法

首先,要操作蓝牙,先要在AndroidManifest.xml里加入权限 <uses-permissionandroid:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permissionandroid:name="android.permission.BLUETOOTH" /> 然后,看下api,Android所有关于蓝牙开发的类都在android.bluetooth包下,共有8个类