导入法律法规知识题库
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>导入法律法规知识题库 下载模板链接:<a href="https://edu.dyhculture.com/api/assets/template/平台试题模版-20220323.xls?platform-token=4557602d86c4e81a260889b078036019">https://edu.dyhculture.com/api/assets/template/平台试题模版-20220323.xls?platform-token=4557602d86c4e81a260889b078036019</a></li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>api/live.paper_question_bank/importV2?type=import</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>文件POST type直接带在后面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;">file</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>导入题库的excel</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>"check":"后台返回数据回来前台展示" ,"import":"强制导入" 默认check</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"code": 20000,
"msg": "success",
"time": "2022-03-23 17:10:07",
"data": [
{
"name": "“不学礼,无以立”的古训是",
"options": [
"孟子",
"荀子",
"孔子",
"庄子"
],
"answer": [
3
],
"analysis": null,
"difficulty": 1,
"type": 1,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
},
{
"name": "与他人在正式场合交谈时要严肃认真,还要注意语言的",
"options": [
"准确规范",
"慢条斯理",
"声音洪亮",
"思路清晰"
],
"answer": [
1
],
"analysis": null,
"difficulty": 2,
"type": 1,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
},
{
"name": "以目的的不同为标准划分的拜访类型有",
"options": [
"孟子",
"荀子",
"孔子",
"庄子"
],
"answer": [
1,
2,
3
],
"analysis": null,
"difficulty": 1,
"type": 2,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
},
{
"name": "与他人在正式场合交谈时要严肃认真,还要注意语言的",
"options": [
"准确规范",
"慢条斯理",
"声音洪亮",
"思路清晰"
],
"answer": [
1,
4
],
"analysis": null,
"difficulty": 2,
"type": 2,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
},
{
"name": "与他人交谈完毕就可以立即转身离开",
"answer": [
"2"
],
"analysis": null,
"difficulty": 1,
"options": [],
"type": 3,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
},
{
"name": "中华人民共和国领土面积是960万平方公里",
"answer": [
"1"
],
"analysis": null,
"difficulty": 2,
"options": [],
"type": 3,
"step": "webBasic",
"platformId": 527,
"addTime": "2022-03-23 17:10:08"
}
]
}</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>