学生获取某一具体投票内容
<h5>简要描述</h5>
<ul>
<li>学生获取某一具体投票内容</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://106.54.91.96:8080/user/getVoteInfo/</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<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;">voteId</td>
<td style="text-align: left;">int</td>
<td>后端对应的投票id</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<p><code>http://106.54.91.96:8080/user/getVoteInfo/?voteId=2</code></p>
<h5>返回示例</h5>
<pre><code> {
"error_code": 0,
"voteName": "这是第一个投票",
"intro": "这个是软工实践投票",
"voteContent": "[{"itemId":"1","name":"第一组","intro":"这是一个链接"},{"itemId":"2","name":"第二组","intro":"这是一个链接"}]",
"type": "1"
}
{
"error_code": 1,
"msg": "please login first" //请先登陆
}
{
"error_code": 1,
"msg": "ID wrong" //ID 错误,没有该投票
}</code></pre>