DYH云

DYH开放接口


获取默认题目

<h5>简要描述</h5> <ul> <li>获取默认题目, 添加试卷有固定的题目, 需要先获取有哪些题目, 主播人设打造题目分两个模块(客观, 主观)</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{BASE_URL}}/api/job.question/getDefaultAccountPositioningQuestion</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <pre><code>"step" : webPersonalAccountPositioningC # 竞赛专用传这个,不传默认webPersonalAccountPositioning</code></pre> <h5>返回示例</h5> <pre><code>{ "code": 20000, "msg": "success", "time": "2021-09-13 19:12:10", "data": { "objective": [ # 客观题 { "jobQuestionId": 8,# 唯一标识 "type": 1, # 题目类型 "step": "webPersonalAccountPositioning", # 固定值 "question": "我是单选", # 问题 "option": "[ "A", "B" ],", # 选项, json 格式, 可以使用 parseOption, 直接是数组, 非客观题时可能是 null|false "keywords": "", # 关键词, 下面那个模块使用 "answer": "0", # 正确答案, 如果是客观题, 为数组索引 "tag": 1, # 无视 "tagText": "默认" , # 标签名 "parseOption": [ "A", "B" ] } ], "subjective": [ { "jobQuestionId": 9, "type": 5, "step": "webPersonalAccountPositioning", "question": "我是关键字匹配和的主观分", "option": "&lt;p&gt;zznb&lt;/p&gt;", "keywords": "关键字 1,关键字 2", "answer": "我是答案", "tag": 1, "tagText": "默认", "parseOption": null } ] } }</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