DYH云

DYH开放接口


课程详情

[TOC]

简要描述
  • 课程详情
请求URL
  • /api/course/getInfo
请求方式
  • GET
参数
参数名 必选 类型 说明
type string 职工类型
level int 等级 1/2/3 (初/中/高)
courseId int 课程id (观看端用这个查询)
返回示例
{
    "code": 20000,
    "msg": "success",
    "time": "2022-04-02 15:06:52",
    "data": {
        "info": {
            "courseId": 5,
            "name": "直播销售员初级",
            "thumb": "xxx",
            "intro": "职业技能等级培训",
            "jobId": 7,
            "weigh": 5,
            "status": 1,
            "addTime": "2022-04-02 11:49:59",
            "updateTime": "2022-04-02 11:49:59"
        },
        "list": [
            {
                "chapterId": 24,
                "courseId": 5,
                "name": "第一章",
                "pid": 0,
                "weigh": 24,
                "videoId": 0,
                "attachmentId": 0,
                "platformId": 0,
                "status": 1,
                "addTime": "2022-04-02 11:50:35",
                "updateTime": "2022-04-02 11:50:35",
                "num": 1,
                "title": "第1章 第一章",
                "children": [
                    {
                        "chapterId": 25,
                        "courseId": 5,
                        "name": "第一节",
                        "pid": 24,
                        "weigh": 25,
                        "videoId": 0,
                        "attachmentId": 0,
                        "platformId": 0,
                        "status": 1,
                        "addTime": "2022-04-02 11:51:17",
                        "updateTime": "2022-04-02 11:51:17",
                        "video": null,
                        "attachment": null,
                        "knobble": 1,
                        "title": "1-1 第一节"
                    },
                    {
                        "chapterId": 26,
                        "courseId": 5,
                        "name": "第二节",
                        "pid": 24,
                        "weigh": 26,
                        "videoId": 0,
                        "attachmentId": 0,
                        "platformId": 0,
                        "status": 1,
                        "addTime": "2022-04-02 11:51:26",
                        "updateTime": "2022-04-02 11:51:26",
                        "video": null,
                        "attachment": null,
                        "knobble": 2,
                        "title": "1-2 第二节"
                    },
                    {
                        "chapterId": 27,
                        "courseId": 5,
                        "name": "第三节",
                        "pid": 24,
                        "weigh": 27,
                        "videoId": 0,
                        "attachmentId": 0,
                        "platformId": 0,
                        "status": 1,
                        "addTime": "2022-04-02 11:51:35",
                        "updateTime": "2022-04-02 11:51:35",
                        "video": null,
                        "attachment": null,
                        "knobble": 3,
                        "title": "1-3 第三节"
                    }
                ]
            }
        ]
    }
}

页面列表

ITEM_HTML