Appearance
查询课程目录小节
| 拥有此API的权限集 |
|---|
| 商品管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.course.course.chapter.get/1.0.0 - 频率限制:
10秒100次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| course_id | 是 | string | 课程id |
请求示例
{
"access_token" : "",
"course_id" : "course_2di7XaH8EJ0f0VZx061ffwMjab0"
}返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 是 | int |
| msg | 是 | string |
| data | 是 | object |
请求结果data
| 参数名 | 类型 | 说明 |
|---|---|---|
| list | array | 结果集 |
| total | int | 结果集总数 |
结果集 list
| 参数名 | 类型 | 说明 |
|---|---|---|
| chapter_id | string | 章节id |
| chapter_title | string | 章节名称 |
| chapter_type | int | 章节类型 0-无 1-章 2-节 |
| resource_type | int | 关联资源的种类(1:图文,2:音频,3:视频,4:直播,20:电子书,45:AI互动课,34练习,27考试,51文档,15作业,13表单,14测试互动) |
| children | array | 子章节集合 |
| id | int | 主键id |
| is_elective | int | 是否选修: 0-非选修;1-选修 |
| is_try | int | 是否在目录中设置试看 0-否 1-是 |
| p_id | string | 父id(所属章节id) |
| section_num | int | 子小节数 |
| sort_value | int | 排序值(升序排序) |
| sub_course_id | string | 所属子课程id |
| sub_course_sort_value | int | 所属子课程排序值(升序排序) |
返回示例
{
"code": 0,
"msg": "ok",
"data": {
"list": [
{
"chapter_id": "i_6399a622e4b0fc5d1216402e",
"chapter_title": "图文课xxx",
"chapter_type": 2,
"resource_type": 1,
"children": [],
"id": 1,
"is_elective": 0,
"is_try": 0,
"p_id": "0",
"section_num": 0,
"sort_value": 1,
"sub_course_id": "subcourse_3668mMbmHe5OVHOj8q73PXbNANv",
"sub_course_sort_value": 1,
},
{
"chapter_id": "chap_366A4ndcqSC2hWioAIFYyKH6ZgQ",
"chapter_title": "章节一",
"chapter_type": 1,
"resource_type": 0,
"children": [
{
"chapter_id": "a_65b07784e4b064a8cb1c67d6",
"chapter_title": "音频课xxx",
"chapter_type": 2,
"resource_type": 2,
"children": [],
"id": 2,
"is_elective": 0,
"is_try": 0,
"p_id": "chap_366A4ndcqSC2hWioAIFYyKH6ZgQ",
"section_num": 0,
"sort_value": 3,
"sub_course_id": "subcourse_3668mMbmHe5OVHOj8q73PXbNANv",
"sub_course_sort_value": 1,
}
],
"id": 3,
"is_elective": 0,
"is_try": 0,
"p_id": "0",
"section_num": 1,
"sort_value": 2,
"sub_course_id": "subcourse_3668mMbmHe5OVHOj8q73PXbNANv",
"sub_course_sort_value": 1,
},
{
"chapter_id": "v_68f8b00ae4b0694ca1316b11",
"chapter_title": "视频课xxx",
"chapter_type": 2,
"resource_type": 3,
"children": [],
"id": 4,
"is_elective": 0,
"is_try": 0,
"p_id": "0",
"section_num": 0,
"sort_value": 1,
"sub_course_id": "subcourse_3668qEJdAj53sRSFJtUpW0TtgYe",
"sub_course_sort_value": 2,
}
],
"total": 4,
}
}