Skip to content

获取培训计划详情

拥有此API的权限集
培训计划管理-查询

请求方式及url

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

接口调试

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

请求参数

参数名必选类型说明备注(示例)
access_tokenstring专属token...
idstring培训计划id...

请求示例

{
   "access_token": "xe_xxxxx",
   "id": "1"
}

返回参数说明

参数名类型说明
codeint0-成功;-1-参数错误;-3-请求调用失败;
msgstring提示信息
data.idstring培训计划id
data.titlestring培训计划名称
data.summarystring培训计划简介
data.img_urlstring培训计划封面
data.img_url_compressed_largerstring培训计划封面压缩大图
data.img_url_compressedstring培训计划封面压缩图
data.org_contentstring培训计划详情
data.lesson_start_atstring培训计划开始时间
data.lesson_stop_atstring培训计划结束时间
data.join_countstring培训计划指派人数
data.created_atstring培训计划创建时间
data.updated_atstring培训计划更新时间
data.task_typeint培训计划任务类型(0-自由模式,1-日期解锁模式,2-闯关模式)
data.term_stateint培训计划任务状态, 3-未开始, 4-进行中, 5-已结束
data.certificate_namestring培训计划证书名称
data.certificate_idstring培训计划证书id
data.task_list.idstring培训计划任务id
data.task_list.titlestring培训计划任务名称
data.task_list.resource_typeint培训计划任务类型
data.task_list.order_weightint培训计划任务排序
data.task_list.created_atstring培训计划任务添加时间
data.task_list.updated_atstring培训计划任务更新时间
data.task_list.children.idstring任务资源id
data.task_list.children.typeint任务资源类型
data.task_list.children.type_namestring任务资源类型名称
data.task_list.children.titlestring任务资源标题

返回示例

{
    "code": 0,
    "msg": "success",
    "data": {
        "id": "term_5fe6f42fa6f5e_Gts2mw",
        "title": "企培2.0测试一(勿改)",
        "summary": "用于企培2.0测试的培训计划",
        "img_url": "http://wechatapppro-1252524126.file.myqcloud.com/app9Ih8LElf5702/image/kj5flnuy0yaltexvwbc.jpg",
        "img_url_compressed_larger": "http://wechatapppro-1252524126.file.myqcloud.com/app9Ih8LElf5702/image/compress/640480431kj5flnuy0yaltexvwbc.jpg",
        "img_url_compressed": "http://wechatapppro-1252524126.file.myqcloud.com/app9Ih8LElf5702/image/compress/414320909kj5flnuy0yaltexvwbc.jpg",
        "org_content": "<ol class=\" list-paddingleft-2\" style=\"list-style-type: decimal;padding-left:30px;\"><li><p>用于企培2.0测试的培训计划</p></li><li><p>用于企培2.0测试的培训计划</p></li><li><p>用于企培2.0测试的培训计划<br/></p></li></ol>",
        "lesson_start_at": "2020-12-26 00:00:00",
        "lesson_stop_at": "2020-12-28 00:00:00",
        "join_count": 0,
        "created_at": "2020-12-26 16:28:33",
        "updated_at": "2021-03-15 17:30:39",
        "task_type": 0,
        "term_state": 5,
		"certificate_name": "结课证书",
        "certificate_id": "cer_sNJfW0N1FF3jpD05",
        "task_list": [
            {
                "id": "sect_x9DsvB7abhCENmyq",
                "title": "计划一-第一节",
                "order_weight": 1,
                "created_at": "2020-12-26 16:28:33",
                "updated_at": "2020-12-26 16:28:33",
				"children": [
                    {
                        "id": "i_5f323f2060b28eac34bdb1fb",
                        "type": 1,
                        "type_name": "图文",
                        "title": "一分钟了解企学院"
                    },
                    {
                        "id": "a_5f6c5b5160b2bccfca150bf0",
                        "type": 2,
                        "type_name": "音频",
                        "title": "123123"
                    },
                    {
                        "id": "p_5fb76ab560b225d85fcea478",
                        "type": 33,
                        "type_name": "采购课",
                        "title": "测试免费01"
                    },
                    {
                        "id": "th_05fe6f3b158f73_wAKnd9j",
                        "type": 28,
                        "type_name": "日历打卡",
                        "title": "日历打卡主题"
                    }
                ]
            }
        ]
    }
}