微信登录
<p><strong>简要描述:</strong></p>
<ul>
<li>微信请求登录,发送code</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>/code2Session</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>js_code</td>
<td>是</td>
<td>string</td>
<td>登录时获取的code</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code class="language-json">{
"errcode": 0,
"errmsg": "登陆成功",
"loginSessionKey": 1
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>errcode</td>
<td>int</td>
<td>错误码 同微信接口错误码</td>
</tr>
<tr>
<td>errmsg</td>
<td>string</td>
<td>错误信息</td>
</tr>
<tr>
<td>loginSessionKey</td>
<td>int</td>
<td>学生ID</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong></p>