通用-单词评测闯关
<p><strong>简要描述:</strong> </p>
<ul>
<li>单词评测闯关</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api//tool/word/{id}</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>评测活动ID</td>
</tr>
<tr>
<td style="text-align: left;">stage_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>关卡ID</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"id": 7,
"name": "单词闯关2",
"stage": {
"id": 11,
"activity_id": 7,
"name": "第一关",
"sort": 1,
"created_at": "2018-09-04 17:24:19"
},
"question": [
{
"id": 20,
"stage_id": 11,
"type": "radio",
"content": "问题1",
"created_at": "2018-09-04 17:24:19",
"answer": [
{
"id": 77,
"stage_id": 11,
"question_id": 20,
"content": "红",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 78,
"stage_id": 11,
"question_id": 20,
"content": "绿",
"is_correct": 1,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 79,
"stage_id": 11,
"question_id": 20,
"content": "黄",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 80,
"stage_id": 11,
"question_id": 20,
"content": "蓝",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
}
]
},
{
"id": 21,
"stage_id": 11,
"type": "radio",
"content": "1+1=?",
"created_at": "2018-09-04 17:24:19",
"answer": [
{
"id": 81,
"stage_id": 11,
"question_id": 21,
"content": "1",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 82,
"stage_id": 11,
"question_id": 21,
"content": "2",
"is_correct": 1,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 83,
"stage_id": 11,
"question_id": 21,
"content": "3",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 84,
"stage_id": 11,
"question_id": 21,
"content": "4",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
}
]
},
{
"id": 22,
"stage_id": 11,
"type": "radio",
"content": "2+2=?",
"created_at": "2018-09-04 17:24:19",
"answer": [
{
"id": 85,
"stage_id": 11,
"question_id": 22,
"content": "1",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 86,
"stage_id": 11,
"question_id": 22,
"content": "2",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 87,
"stage_id": 11,
"question_id": 22,
"content": "3",
"is_correct": 0,
"created_at": "2018-09-04 17:24:19"
},
{
"id": 88,
"stage_id": 11,
"question_id": 22,
"content": "4",
"is_correct": 1,
"created_at": "2018-09-04 17:24:19"
}
]
}
],
"commodity": [
{
"id": 1,
"stage_id": 11,
"type": "external",
"commodity_id": null,
"name": "外部商品",
"price": 1,
"url": "url",
"cover": "封面",
"created_at": "2018-09-04 19:14:28"
},
{
"id": 2,
"stage_id": 11,
"type": "inside",
"commodity_id": 399,
"name": null,
"price": null,
"url": null,
"cover": null,
"created_at": "2018-09-04 19:14:28"
}
],
"stage_count": 3,
"next_stage_id": 12
},
"message": "操作成功",
"ct": 1536115886
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>