员工登录
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>员工登录</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://ip:port/attendance/applet/userLogin</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>http POST</li>
</ul>
<h5>请求类型</h5>
<ul>
<li>Content-Type: application/json;charset=utf-8 </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;">loginInfo</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名密码信息JSON转字符串AES加密 {"username" : "手机号码", "password" : "密码" }</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
&quot;loginInfo&quot; : &quot;AES加密字符串&quot;
}</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;">code</td>
<td style="text-align: left;">int</td>
<td>状态码(是否成功)</td>
</tr>
<tr>
<td style="text-align: left;">success</td>
<td style="text-align: left;">boolean</td>
<td>成功标志</td>
</tr>
<tr>
<td style="text-align: left;">message</td>
<td style="text-align: left;">string</td>
<td>返回信息</td>
</tr>
<tr>
<td style="text-align: left;">result</td>
<td style="text-align: left;">object</td>
<td>返回数据</td>
</tr>
<tr>
<td style="text-align: left;">timestamp</td>
<td style="text-align: left;">string</td>
<td>时间戳</td>
</tr>
<tr>
<td style="text-align: left;">manager</td>
<td style="text-align: left;">boolean</td>
<td>是否为管理员</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;success&quot;: true,
&quot;message&quot;: &quot;登录成功&quot;,
&quot;code&quot;: 200,
&quot;result&quot;: {
&quot;token&quot; : &quot;xxxxx&quot;,
&quot;userInfo&quot; : {
&quot;id&quot;: &quot;1546485714603229186&quot;,
&quot;userId&quot;: &quot;1546455949896892417&quot;,
&quot;manager&quot; : true,
&quot;personId&quot;: null,
&quot;orgName&quot;: &quot;111&quot;,
&quot;deptName&quot;: &quot;222&quot;,
&quot;registeredImage&quot;: &quot;2022/07/11/temp/4468bfc32e4c43afb6864d8e01949319_1657545916424.jpg&quot;,
&quot;faceImage&quot;: null,
&quot;name&quot;: &quot;张贵兴&quot;,
&quot;sex&quot;: 0,
&quot;age&quot;: null,
&quot;birthday&quot;: &quot;2022-07-06&quot;,
&quot;idCard&quot;: &quot;622625197503252517&quot;,
&quot;mobile&quot;: &quot;13345678909&quot;,
&quot;nation&quot;: null,
&quot;hometown&quot;: null,
&quot;enCode&quot;: null,
&quot;cardNum&quot;: null,
&quot;personType&quot;: 0,
&quot;tempvalid&quot;: 0,
&quot;tempvalidBeginTime&quot;: null,
&quot;tempvalidEndTime&quot;: null,
&quot;tempvalidCount&quot;: null,
&quot;address&quot;: &quot;vsgwe&quot;,
&quot;flagIssued&quot;: null,
&quot;status&quot;: &quot;0&quot;,
&quot;staffType&quot;: &quot;0&quot;,
&quot;remark&quot;: null,
&quot;createTime&quot;: &quot;2022-07-11 21:25:01&quot;,
&quot;updateTime&quot;: &quot;2022-07-11 21:25:18&quot;,
&quot;beginTime&quot;: null,
&quot;endTime&quot;: null
}
},
&quot;data&quot;: null,
&quot;timestamp&quot;: 1679046995546
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>