Skip to content

获取考试列表

拥有此API的权限集
考试管理-查询

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.examination.list.get/1.0.0
  • 频率限制: 10秒3000次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
search_contentstring考试名称
page_indexint页码
page_sizeint页大小

请求示例

 {
    "access_token": "xe_xxxxx"
  }

返回参数

参数名类型说明
codeint状态码
msgstring请求状态描述信息
dataobject当前页数
data.total_countint总数
data.exam_listarray考试列表

data.exam_list考试列表

参数名类型说明
app_idstring店铺id
idstring考试id
namestring考试名称
stateint考试状态0-未发布 1-已发布 2-删除 3-停止发布 4-定时发布
created_atstring考试创建时间
goods_infoarray关联课程列表
total_questionint考试总题数,(随机出题试卷算实际出题数)
total_scoreint考试总分
participate_countint参与人数
commit_countint提交人数
comment_countint批阅人数

goods_info 关联课程列表

参数名类型说明
exam_idstring考试id
is_deletedint是否删除:0-否 1-是
priceint关联课程价格,单位:分
resource_idstring关联课程资源id
resource_typeint关联课程资源类型
titlestring关联课程标题

返回示例

{
    "code": 0,
    "data": {
        "exam_list": [
            {
                "app_id": "appxxxx",
                "comment_count": 0,
                "commit_count": 0,
                "created_at": "2021-11-29 17:14:35",
                "goods_info": [
                 {
                    "exam_id": "ex_62fdf812559f8_72sZEwB3",
                    "is_deleted": 0,
                    "price": 200,
                    "resource_id": "p_62f7011ce4b00a4f3733128f",
                    "resource_type": 5,
                    "title": "测试"
                }
                ]

                "id": "ex_62fdf812559f8_72sZEwB3",
                "name": "aadada",
                "participate_count": 0,
                "state": 1,
                "total_question": 5,
                "total_score": 10
            }
        ],
        "total_count": 117
    },
    "msg": "操作成功"
}