DYH云

DYH开放接口


获取题目详情

<h5>简要描述</h5> <ul> <li>获取题目详情</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{BASE_URL}}/api/job.paper/getInfo</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST</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;">hiddenAnswer</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>0 不隐藏答案 1 隐藏答案</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 20000, "msg": "success", "time": "2021-09-29 11:22:09", "data": { "jobPaperId": 67, "platformId": 527, "step": "webLivePreheat", "video": "", "name": "11111111", "background": "11111111", "score": "32.00", "belongs": 1, "extra": {xxx}, "status": 1, "addTime": "2021-09-29 11:22:07", "updateTime": "2021-09-29 11:22:07", "questionList": [ { "type": "19", #选择题 多个答案对一个就行 "question": "海报背景图", "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]', "answer": "1", # 逗号分隔 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数, "part":1 # 海报背景图 }, { "type": "19", #选择题 多个答案对一个就行 "question": "产品图片", "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]', "answer": "1", # 逗号分隔 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数, "part":2 # 产品图片 "extra": #存图片位置大小参数 }, { "type": "19", #选择题 多个答案对一个就行 "question": "主播图片", "option": '["图片地址1","图片地址2","图片地址3","图片地址4"]', "answer": "1", # 逗号分隔 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数, "part":3 # 主播图片 "extra": #存图片位置大小参数 }, { "type": "3", #判断题 "question": "是否添加二维码", "option": '["是","否"]', "answer": "1", # 固定 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数, "part":4 # 主播图片 "extra": #存图片位置大小参数 }, { "type": "5", #填空题 "question": "产品卖点", "option": '', "keywords": "a,b/c", # 关键词答案 "tag": "1", # 固定值 "belongs": 1, # 固定值 "keywordScore": 2 # 关键词分数, "part":5 # 填空 }, { "type": "5", #填空题 "question": "预告优惠内容", "option": '', "keywords": "a,b/c", # 关键词答案 "tag": "1", # 固定值 "belongs": 1, # 固定值 "keywordScore": 2 # 关键词分数, "part":6 # 填空 }, { "type": "5", #填空题 "question": "直播时间", "option": '', "keywords": "a,b/c", # 关键词答案 "tag": "1", # 固定值 "belongs": 1, # 固定值 "keywordScore": 2 # 关键词分数, "part":7 # 填空 }, { "type": "1", #选择题 "question": "短视频选择题", "option": '["短视频地址1","短视频地址1","短视频地址1","短视频地址1"]', "answer": "1", # 逗号分隔 "tag": "1", # 固定值 "belongs": 1, # 固定值 "score": 2 # 单题分数, "part":8 # 短视频选择题 }, }</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