Skip to content

该接口用于查询试卷下的章节列表数据。

试卷搜索

  • 请求方法:GET

  • 是否鉴权:是

  • 请求编码:Content-Type:application/x-www-form-urlencoded

  • 响应编码:Content-Type:application/json;charset=UTF-8

  • 请求地址:index/collection/chapterList

  • 请求参数:

参数名参数类型是否必填参数说明示例值
collection_uidstring试卷id
typeint8选择题章节4问答题章节
  • 成功示例:
javascript
{
  "data": [
    {
      "exam_count": 0,
      "uid": "7a226c998e",
      "title": "基础知识",
      "parent_uid": "",
      "collection_uid": "276baff49c",
      "children": [
        {
          "exam_count": 1,
          "parent_uid": "7a226c998e",
          "uid": "ff7cb36b73",
          "title": "了解Redis",
          "collection_uid": "276baff49c"
        }
      ]
    },
  ],
  "code": 100,
  "msg": "请求成功"
}
参数名参数类型是否必有参数说明示例值
exam_countint试题总数1
uidstring章节id-
titlestring章节名称1
parent_uidstring父章节id-
collection_uidstring试卷id-
  • 失败示例:
javascript
{
	"code": 101,
	"data": [],
	"msg": "获取失败"
}