新建章节

POST /api/tcc-open-platform/open-api/onlineTrain/chapter
消耗
  • application/json
生成
  • */*
参数
类型 名称 说明 类型
Body dto
必填
dto [章节数据迁移数据传输类]

章节数据迁移数据传输类

名称 说明 类型
allowSubChapter
必填
是否允许有子章节:0/否,1/是 integer (int32)
chapterTitle
必填
章节标题 string
courseId
必填
课程id integer (int64)
createBy
可选
创建人 string
createTime
可选
创建时间(没有创建时间可以拿更新时间字段) string (date-time)
enable
可选
启用状态(0:禁用、1:启用,默认:0) integer (int32)
orgId
可选
租户编号 integer (int64)
parentId
可选
上级章节id,如果没有则传0 integer (int64)
recommendStatus
可选
推荐状态(0:未推荐、1:推荐) integer (int32)
recommendTime
可选
推荐时间 string (date-time)
resourceAddress
可选
章节资源地址 string
resourceDuration
可选
播放视频的长度,以秒为单位。若播放地址不为空的话这个字段也不能为空 integer (int32)
testId
可选
测验编号 integer (int64)
updateBy
可选
更新人 string
updateTime
可选
更新时间 string (date-time)
调用示例
{
  "allowSubChapter": 0,
  "chapterTitle": "string",
  "courseId": 0,
  "createBy": "string",
  "createTime": "2020-12-18T06:50:11.289Z",
  "enable": 0,
  "orgId": 0,
  "parentId": 0,
  "recommendStatus": 0,
  "recommendTime": "2020-12-18T06:50:11.289Z",
  "resourceAddress": "string",
  "resourceDuration": 0,
  "testId": 0,
  "updateBy": "string",
  "updateTime": "2020-12-18T06:50:11.289Z"
}
响应
HTTP代码 说明 类型
200 OK RestData
201 Created 无内容
401 Unauthorized 无内容
403 Forbidden 无内容
404 Not Found 无内容

响应示例

{
	"code": 200,
	"data": {id(章节id)},
	"desc": ""
}