文档
测试

获取章节列表

GET
/teacher/chapter/gradually

接口描述

逐层获取章节列表

请求参数

参数名
类型
描述
必填
class_id
int
班级ID
必填
attribute_id
int
科目ID
必填
method
string
固定值:chapter
必填
course_id
int
课程ID(获取章、节、课时需要传)
必填

响应参数

参数名
类型
描述
必填
code
int
返回状态码
必填
msg
string
返回描述
必填
data
array
返回数据
必填
id
int
课程或者章节的ID
必填
title
string
获取章节时的章节名称
可选

说明 / 示例

{ "code": 200, "msg": "操作成功", "data": [ { "id": 0, "title": "系统章", "type": "chapter", "course_id": "50", "unit_list": [ { "id": "1354", "title": "扎染", "type": "unit", "course_id": "50", "lesson_list": [ { "id": "1419", "courseId": "50", "type": "lesson", "number": "1", "seq": "2", "title": "扎染 ", "createdTime": "1634543114", "updatedTime": "1641971750", "copyId": "0", "status": "published", "isOptional": "0", "migrateLessonId": "0", "migrateCopyCourseId": "0", "migrateRefTaskId": "0", "mgrateCopyTaskId": "0", "migrate_task_id": "0", "published_number": "1", "syncId": "0", "parent_id": null, "lesson_desc": "", "lesson_desc_name": "", "itemType": "chapter" } ] } ] }, { "id": "10138", "title": "第一章", "type": "chapter", "course_id": "50" }, { "id": "10139", "title": "1212", "type": "chapter", "course_id": "50" } ] }