DYH云

DYH开放接口


获取试卷详情

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>资源库获取</li> </ul> <h5>请求URL</h5> <ul> <li><code>api/job.paper/getShortVideoInfo</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;">paperId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>试卷Id</td> </tr> <tr> <td style="text-align: left;">contestId</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-05-19 15:23:26",     "data": {         "jobPaperId": 962,         "platformId": 527,         "step": "shortVideoSplitter",         "video": "",         "name": "短视频分镜",         "background": "我是背景资料123",         "score": "5.00",         "belongs": 1,         "type": 0,         "formatType": 0,         "language": "",         "extra": [],         "status": 1,         "addTime": "2022-05-18 10:05:45",         "updateTime": "2022-05-18 10:12:06",         "knowledge": "",         "goodsIds": "",         "questionList": [             {                 "questionId": 38878,                 "question": "问题标题标题1",                 "type": 4,                 "score": "5.00",                 "jobQuestionId": 38878, "images":"图片", "video":"背景视频", "duration":"视频录制时长",                 "option": {                     "positive": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/5df7c859619e6a864e619bfec944225f.jpg",                     "left": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/eaa60bba89269c639c11830e89ba02a0.jpg",                     "right": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/0355381f90f86469b4bab9a864736458.jpg"                 },                 "paperQuestionId": 7186,                 "tag": "1",                 "answer": "",                 "keywords": "",                 "tagText": "默认",                 "options": {                     "positive": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/5df7c859619e6a864e619bfec944225f.jpg",                     "left": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/eaa60bba89269c639c11830e89ba02a0.jpg",                     "right": "https://vvod.obs.cn-north-4.myhuaweicloud.com/202205/17/0355381f90f86469b4bab9a864736458.jpg"                 },                 "haveDone": true, #已提交过视频                 "userAnswer": "https://409-cn-north-4.cdn-vod.huaweicloud.com/asset/c93f86bc3602e1fdb6efee618d8155e7/e749f95923ca02920136c91417f35585.mp4"             }         ]     } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML