Appearance
查询训练营目录小节
| 拥有此API的权限集 |
|---|
| 商品管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.course.camp.term.detail/1.0.0 - 频率限制:
10秒100次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| term_id | 是 | string | 营期id |
| camp_id | 是 | string | 训练营id |
请求示例
{
"access_token":"",
"term_id ":"term_6642bb09f097f_DDEzRv",
"camp_id ":"camp_ySb1QT0jg9hKFWkC"
}返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码,返回为0即响应成功 |
| msg | string | 请求结果描述,返回success即响应成功 |
| data | object | 请求结果 |
| data.information_data | object | 表单数据 |
| data.children | object | 目录节点 |
| data.term_info | object | 当前营期的基本详情信息 |
| data.task_info | array | 当前营期的任务数信息 |
当前营期的基本详情信息 data.term_info
| 参数名 | 类型 | 说明 |
|---|---|---|
| app_id | string | 店铺id |
| camp_id | string | 训练营id |
| id | string | 营期id |
| plan_id | string | 学习计划id |
| title | string | 营期名称 |
| summary | string | 简介 |
| img_url | string | 封面url-原图 |
| img_url_compressed_larger | string | 封面url-压缩图大图 |
| img_url_compressed | string | 封面url-压缩图小图 |
| org_content | string | 详情(原始html内容) |
| sell_type | int | 是否单卖 (1-单卖 2-非单卖) |
| price | int | 价格(分) |
| line_price | int | 划线价 |
| start_at | string | 上架时间 |
| stop_at | string | 下架时间 |
| enrollment_start_at | string | 招生开始时间 |
| enrollment_stop_at | string | 招生结束时间 |
| lesson_start_at | string | 课程开始时间 |
| lesson_stop_at | string | 课程结束时间 |
| task_type | int | 任务类型(0-自由模式,1-日期解锁模式) |
| unlock_condition | json | 解锁条件 json格式(日期格式:{"unlock_time":"9:00","unlock_unit":"node(task)","unlock_num":2} |
| push_state | int | 是否开启消息提醒:0-关闭,1-开启,此值也控制开课消息、解锁消息提醒 |
| is_stop_sell | int | 是否停售,0-否 1-是 |
| push_state_outline | int | 开课消息发送状态:0-未发送 1-发送中 2-已发送 3-发送失败 |
| display_state | int | 状态, 0-正常可见 1-隐藏 2-删除 |
| recycle_bin_state | int | 上下架状态, 0-上架 1-下架 |
| order_weight | int | 营期排序,排在第几位 |
| have_password | int | 该资源是否有密码(0-无,1-有) |
| resource_password | string | 资源密码 |
| is_public | int | 是否公开售卖,1公开,0不公开 |
| is_push_update | int | 是否推送课程更新提醒,0不推送,1推送,默认 |
| push_time_before | int | 开课前n分钟推送消息,目前有0、5、15、30、60、1440分钟,默认0 |
| created_at | string | 创建时间 |
| term_state | int | 营期状态(1待招生,2招生中,3待开课,4开课中,5开课结束) |
| resource_ids_before | json | 营期更新前关联的资源id |
| information_data | json | 表单相关数据 |
当前营期的任务数信息data.task_info
| 参数名 | 类型 | 说明 |
|---|---|---|
| app_id | string | 店铺id |
| camp_id | string | 训练营id |
| term_id | string | 营期id |
| id | string | 节id |
| type | int | 节点类型 0-节(父节点) 1-任务(子节点) |
| pid | string | 父节点id |
| title | string | 任务标题 |
| order_weight | int | 排序位置,排在第几位 |
| state | int | 状态 0-正常 1-隐藏 2-删除 |
| need_push | int | 是否推送:0-不推送,1-推送 |
| unlock_time | string | 节点的解锁时间(营期为日期解锁时),也是节点解锁的通知时间 |
| push_state | int | 推送状态:0-等待推送 1-推送中 2-推送成功 3-推送失败 |
| children | array | 子节点 |
表单信息data.information_data
| 参数名 | 类型 | 说明 |
|---|---|---|
| form_name | string | 表单名字 |
| in_id | string | 表单id |
目录节点data.children
| 参数名 | 类型 | 说明 |
|---|---|---|
| resource_id | string | 资源id |
| resource_type | int | 资源种类(1:图文,2:音频,3:视频,4:直播,20:电子书,45:AI互动课,34练习,27考试,51文档,15作业,13表单,14测试互动) |
| title | string | 资源标题 |
返回示例
{
"code": 0,
"msg":"success",
"data": {
"term_info":{},
"task_info":[
{
"app_id":"app7scxqsjh1141",
"camp_id ":"camp_ySb1QT0jg9hKFWkC",
"term_id ":"term_6642bb09f097f_DDEzRv",
"id ":"sect_GJiOcKJQSZhgPzlb",
"type ":0,
"pid ":0,
"title":"新能源汽车行业知识",
"order_weight":1,
"state":0,
"need_push ":0,
"unlock_time ":"0000-00-00 00:00:00",
"push_state ":0,
"created_at ":"2024-05-14 09:16:39",
"updated_at ":"2024-05-14 09:16:39",
"children":[
{
"app_id ":"app7scxqsjh1141",
"camp_id ":"camp_ySb1QT0jg9hKFWkC",
"term_id ":"term_6642bb09f097f_DDEzRv",
"id":"v_64d4e7b0e4b03e4b54e4b001",
"type ":1,
"pid":"sect_GJiOcKJQSZhgPzlb",
"title ":"汽车发展史",
"resource_id":"v_64d4e7b0e4b03e4b54e4b001",
"resource_type ":3,
"is_try ":0,
"order_weight ":1,
"state":0,
"need_push ":0,
"unlock_time ":"0000-00-00 00:00:00",
"push_state ":0,
"created_at ":"2024-05-14 09:14:50",
"updated_at ":"2024-05-14 09:16:39",
"resource_info":{
"id" :"v_64d4e7b0e4b03e4b54e4b001",
"title ":"汽车发展史",
"img_url_compressed ":"xxxxxxxxxxx"
},
"is_public":1,
"payment_type ":3
}
]
}
],
"task_user_count":0,
"timestamp":"2024-05-14 09:27:44",
"lead":[],
"information_data":{
"form_name":"",
"in_id":""
}
}
}