Skip to content

查询训练营目录小节

拥有此API的权限集
商品管理-查询

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.course.camp.term.detail/1.0.0
  • 频率限制:10秒100次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
term_idstring营期id
camp_idstring训练营id

请求示例

{
    "access_token":"",
    "term_id ":"term_6642bb09f097f_DDEzRv",
    "camp_id ":"camp_ySb1QT0jg9hKFWkC"
}

返回参数

参数名类型说明
codeint状态码,返回为0即响应成功
msgstring请求结果描述,返回success即响应成功
dataobject请求结果
data.information_dataobject表单数据
data.childrenobject目录节点
data.term_infoobject当前营期的基本详情信息
data.task_infoarray当前营期的任务数信息

当前营期的基本详情信息 data.term_info

参数名类型说明
app_idstring店铺id
camp_idstring训练营id
idstring营期id
plan_idstring学习计划id
titlestring营期名称
summarystring简介
img_urlstring封面url-原图
img_url_compressed_largerstring封面url-压缩图大图
img_url_compressedstring封面url-压缩图小图
org_contentstring详情(原始html内容)
sell_typeint是否单卖 (1-单卖 2-非单卖)
priceint价格(分)
line_priceint划线价
start_atstring上架时间
stop_atstring下架时间
enrollment_start_atstring招生开始时间
enrollment_stop_atstring招生结束时间
lesson_start_atstring课程开始时间
lesson_stop_atstring课程结束时间
task_typeint任务类型(0-自由模式,1-日期解锁模式)
unlock_conditionjson解锁条件 json格式(日期格式:{"unlock_time":"9:00","unlock_unit":"node(task)","unlock_num":2}
push_stateint是否开启消息提醒:0-关闭,1-开启,此值也控制开课消息、解锁消息提醒
is_stop_sellint是否停售,0-否 1-是
push_state_outlineint开课消息发送状态:0-未发送 1-发送中 2-已发送 3-发送失败
display_stateint状态, 0-正常可见 1-隐藏 2-删除
recycle_bin_stateint上下架状态, 0-上架 1-下架
order_weightint营期排序,排在第几位
have_passwordint该资源是否有密码(0-无,1-有)
resource_passwordstring资源密码
is_publicint是否公开售卖,1公开,0不公开
is_push_updateint是否推送课程更新提醒,0不推送,1推送,默认
push_time_beforeint开课前n分钟推送消息,目前有0、5、15、30、60、1440分钟,默认0
created_atstring创建时间
term_stateint营期状态(1待招生,2招生中,3待开课,4开课中,5开课结束)
resource_ids_beforejson营期更新前关联的资源id
information_datajson表单相关数据

当前营期的任务数信息data.task_info

参数名类型说明
app_idstring店铺id
camp_idstring训练营id
term_idstring营期id
idstring节id
typeint节点类型 0-节(父节点) 1-任务(子节点)
pidstring父节点id
titlestring任务标题
order_weightint排序位置,排在第几位
stateint状态 0-正常 1-隐藏 2-删除
need_pushint是否推送:0-不推送,1-推送
unlock_timestring节点的解锁时间(营期为日期解锁时),也是节点解锁的通知时间
push_stateint推送状态:0-等待推送 1-推送中 2-推送成功 3-推送失败
childrenarray子节点

表单信息data.information_data

参数名类型说明
form_namestring表单名字
in_idstring表单id

目录节点data.children

参数名类型说明
resource_idstring资源id
resource_typeint资源种类(1:图文,2:音频,3:视频,4:直播,20:电子书,45:AI互动课,34练习,27考试,51文档,15作业,13表单,14测试互动)
titlestring资源标题

返回示例

{
    "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":""
    	}
    }
}