获取用户信息接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取用户信息接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:3000/front/api/users/userinfo/:userid</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </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;">userid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户id</td>
</tr>
</tbody>
</table>
<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;">authorization</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>登录时获取到的token</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;error_code&quot;: 0,
&quot;data&quot;: {
&quot;_id&quot;: &quot;64107ba272fbbcf11418db38&quot;,
&quot;username&quot;: &quot;cuihua&quot;,
&quot;password&quot;: &quot;$2a$10$aaltmgxbJFK241SPtGJ5U.GZjef9q9.oo3sNcN7xNjmLLQhAgHkVK&quot;,
&quot;email&quot;: &quot;123456789@qq.com&quot;,
&quot;tel&quot;: 18888888888,
&quot;created_at&quot;: &quot;2023-03-14T13:49:03.143Z&quot;,
&quot;updated_at&quot;: &quot;2023-03-14T13:49:03.143Z&quot;,
&quot;enable&quot;: false,
}
}</code></pre>