登录
<h5>简要描述</h5>
<ul>
<li>登录</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://api.9lele.com/public/index.php/api/user/login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th>header</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>Token</td>
<td>be4c4de6-6ed4-4d79-9678-f75ac6c6c6af</td>
<td>是</td>
<td>string</td>
<td>登录成功后获取的token</td>
</tr>
</tbody>
</table>
<h5>请求Body参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>account</td>
<td>Excalibur</td>
<td>是</td>
<td>string</td>
<td>用户名</td>
</tr>
<tr>
<td>password</td>
<td>Excalibur</td>
<td>是</td>
<td>string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;登录成功&quot;,
&quot;time&quot;: &quot;1714176281&quot;,
&quot;data&quot;: {
&quot;userinfo&quot;: {
&quot;id&quot;: 37,
&quot;username&quot;: &quot;Excalibur&quot;,
&quot;nickname&quot;: &quot;Excalibur&quot;,
&quot;mobile&quot;: &quot;18636591111&quot;,
&quot;avatar&quot;: &quot;data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjI5LDE4OSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPkU8L3RleHQ+PC9zdmc+&quot;,
&quot;score&quot;: 0,
&quot;token&quot;: &quot;be4c4de6-6ed4-4d79-9678-f75ac6c6c6af&quot;,
&quot;user_id&quot;: 37,
&quot;createtime&quot;: 1714176281,
&quot;expiretime&quot;: 1716768281,
&quot;expires_in&quot;: 2592000
}
}
}</code></pre>