用户登录
<p>[TOC]
</p>
<h5>简要描述</h5>
<ul>
<li>用户登录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/user/register</code>
<h5>请求方式</h5></li>
<li>POST </li>
</ul>
<h5>参数</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|username |是 |string |用户名 |
|password |是 |string | 密码 |</p>
<h5>返回示例</h5>
<pre><code>{
&quot;err_code&quot;: 0,
&quot;msg&quot;: &quot;登录成功!&quot;,
&quot;data&quot;: {
&quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJ1aHVhIiwiZXhwaXJlcyI6NzIwMCwic3RhcnRUaW1lIjoxNzMxNTcxOTA0MzEzLCJpYXQiOjE3MzE1NzE5MDR9.7QuMx3ugyE8vSXZIGk4gpqdOzs2R_yNyesPmwUpDbvY&quot;,
&quot;username&quot;: &quot;ruhua&quot;,
&quot;nickname&quot;: &quot;rh&quot;
}
}</code></pre>