登录
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户登录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost/dev-api/auth/login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">username</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
"code": 200,
"msg": null,
"data": {
"access_token": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjVkZDMwZWRlLTEyNjEtNDc5OS1iMzg4LTFmMzc0OGYzYTM0OSIsInVzZXJuYW1lIjoiYWRtaW4ifQ.pa10y5eUEAUEzU8T6IYp83gFRDY2ywqGA1o6N5mPqx3PyvLNGTS6IsXX17BL_0MGGZk_dlZpM2oyUyioT4RVPQ",
"expires_in": 720
}
}
</code></pre>