学生投票
<h5>简要描述</h5>
<ul>
<li>学生投票</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://106.54.91.96:8080/user/vote/</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</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>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">list</td>
<td>给哪些队伍投票的列表</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
"voteId": 2,
"data": [11] //给11组投票
}
{
"voteId": 2,
"data": [1,11] //给1和11组投票
}
</code></pre>
<h5>返回示例</h5>
<pre><code> {
"error_code": 0,
"msg": "success"
}
{
"error_code": 1,
"msg": "can not vote for your team" //不能给自己的队伍投票
}
{
"error_code": 1,
"msg": "please login first" //请先登陆
}
{
"error_code": 1,
"msg": "params error" //参数错误
}
{
"error_code": 1,
"msg": "voteId does not exist" //投票不存在
}
{
"error_code": 1,
"msg": "you have already voted before" //该学号已经投过票了
}</code></pre>