登陆
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户登录</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/login</code>
<h5>请求方式</h5></li>
<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;code&quot;: 200,
&quot;data&quot;: {
&quot;companyName&quot;: &quot;问云&quot;,
&quot;id&quot;: &quot;8&quot;,
&quot;identityCard&quot;: &quot;413026199702065436&quot;,
&quot;mobile&quot;: &quot;13761437019&quot;,
&quot;name&quot;: &quot;帮辉&quot;,
&quot;password&quot;: &quot;$2a$10$WTjVbGZdlPlmOBlhv3pFcu3JmIjE0nvYecRJPpWx1HtZtS1k1IGpq&quot;,
&quot;position&quot;: &quot;开发&quot;,
&quot;status&quot;: 1
},
&quot;jwt&quot;: &quot;Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzc2MTQzNzAxOSIsImlhdCI6MTcxNTY1NTY5OSwiZXhwIjoxNzE1NjcwMDk5fQ.wYoxNOt9p_9Ke6Tyj4rfHGh3Z_ul6kW46DXEDTooNOVWXCjk42Y1Ooyu_qSEGETWb05T6-9fJIrWrw0TNaiPtQ&quot;,
&quot;msg&quot;: &quot;登录成功&quot;,
&quot;refreshToken&quot;: &quot;eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzc2MTQzNzAxOSIsImlhdCI6MTcxNTY1NTY5OSwiZXhwIjoxNzE2MjYwNDk5fQ.qZ5aLQi4K0hA8IRUEB-SK5thxKa49uzspKDdrHgGLsgphsT5vjodmCcvqaSkcnk4cupSvmShjOJISGUCNv6U1Q&quot;,
&quot;success&quot;: true
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">success</td>
<td style="text-align: left;">boolean</td>
<td>是否成功</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">Integer</td>
<td>返回码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">String</td>
<td>返回信息</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">Long</td>
<td>总数</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">List<T></td>
<td>返回数据</td>
</tr>
<tr>
<td style="text-align: left;">jwt</td>
<td style="text-align: left;">String</td>
<td>token数据</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>