DYH云

DYH开放接口


课程详情

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>课程详情</li> </ul> <h5>请求URL</h5> <ul> <li><code>/api/course/getInfo</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>职工类型</td> </tr> <tr> <td style="text-align: left;">level</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>等级 1/2/3 (初/中/高)</td> </tr> <tr> <td style="text-align: left;">courseId</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>课程id (观看端用这个查询)</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ "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 第三节" } ] } ] } }</code></pre>

页面列表

ITEM_HTML