用户登录
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户登录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/authentication</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> {
&quot;accessToken&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJpYXQiOjE2ODU3MDY3OTQsImV4cCI6MTY4NTc5MzE5NCwiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIiwic3ViIjoiMSIsImp0aSI6ImZjMTVjMjYwLTgwODItNGZlMi05N2IyLTRmNjFkZjlkNDAwOCJ9.rmM-XVSMPBYjxvHBuC-Bg98Cu4X4FqXJw9U0Of_VSag&quot;,
&quot;authentication&quot;: {
&quot;strategy&quot;: &quot;local&quot;,
&quot;accessToken&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJpYXQiOjE2ODU3MDY3OTQsImV4cCI6MTY4NTc5MzE5NCwiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIiwic3ViIjoiMSIsImp0aSI6ImZjMTVjMjYwLTgwODItNGZlMi05N2IyLTRmNjFkZjlkNDAwOCJ9.rmM-XVSMPBYjxvHBuC-Bg98Cu4X4FqXJw9U0Of_VSag&quot;,
&quot;payload&quot;: {
&quot;iat&quot;: 1685706794,
&quot;exp&quot;: 1685793194,
&quot;aud&quot;: &quot;https://yourdomain.com&quot;,
&quot;iss&quot;: &quot;feathers&quot;,
&quot;sub&quot;: &quot;1&quot;,
&quot;jti&quot;: &quot;fc15c260-8082-4fe2-97b2-4f61df9d4008&quot;
}
},
&quot;user&quot;: {
&quot;id&quot;: 1,
&quot;uname&quot;: &quot;admin&quot;,
&quot;phone&quot;: &quot;18820203794&quot;,
&quot;type&quot;: 1,
&quot;createdAt&quot;: &quot;2023-05-17T13:20:34.000Z&quot;,
&quot;updatedAt&quot;: &quot;2023-05-17T13:20:34.000Z&quot;
}
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>