ordermeal

点餐系统


获取用户信息接口

<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> { &amp;quot;error_code&amp;quot;: 0, &amp;quot;data&amp;quot;: { &amp;quot;_id&amp;quot;: &amp;quot;64107ba272fbbcf11418db38&amp;quot;, &amp;quot;username&amp;quot;: &amp;quot;cuihua&amp;quot;, &amp;quot;password&amp;quot;: &amp;quot;$2a$10$aaltmgxbJFK241SPtGJ5U.GZjef9q9.oo3sNcN7xNjmLLQhAgHkVK&amp;quot;, &amp;quot;email&amp;quot;: &amp;quot;123456789@qq.com&amp;quot;, &amp;quot;tel&amp;quot;: 18888888888, &amp;quot;created_at&amp;quot;: &amp;quot;2023-03-14T13:49:03.143Z&amp;quot;, &amp;quot;updated_at&amp;quot;: &amp;quot;2023-03-14T13:49:03.143Z&amp;quot;, &amp;quot;enable&amp;quot;: false, } }</code></pre>

页面列表

ITEM_HTML