新建讨论主题

POST /api/tcc-open-platform/open-api/onlineTrain/discussTheme
消耗
  • application/json
生成
  • */*
参数
类型 名称 说明 类型
Body dto
必填
dto [讨论主题]

讨论主题数据传输类

名称 说明 类型
chapterId
可选
章节编号 integer (int64)
content
可选
讨论内容 string
courseId
可选
课程编号 integer (int64)
createBy
可选
创建人 string
createTime
可选
创建时间 string (date-time)
examineStatus
可选
审核状态(审批状态:0/待审批,1/审批不通过,2/审批通过,默认:0) integer (int32)
likeCount
可选
点赞数 integer (int32)
mobilePhone
可选
用户手机号码 string
orgId
可选
租户编号 integer (int64)
updateBy
可选
更新人 string
updateTime
可选
更新时间 string (date-time)
viewCount
可选
浏览数 integer (int32)
调用示例
{
  "chapterId": 0,
  "content": "string",
  "courseId": 0,
  "createBy": "string",
  "createTime": "2020-12-18T07:07:35.084Z",
  "examineStatus": 0,
  "likeCount": 0,
  "mobilePhone": "string",
  "orgId": 0,
  "updateBy": "string",
  "updateTime": "2020-12-18T07:07:35.084Z",
  "viewCount": 0
}
响应
HTTP代码 说明 类型
200 OK RestData
201 Created 无内容
401 Unauthorized 无内容
403 Forbidden 无内容
404 Not Found 无内容

响应示例

{
	"code": 200,
	"data": {id(主题id)},
	"desc": ""
}