查询用户所有订单接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>查询用户所有订单接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:3000/front/api/orders/getall/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;msg&quot;: &quot;获取订单成功!&quot;,
&quot;data&quot;: [
{
&quot;_id&quot;: &quot;64107bed72fbbcf11418db49&quot;,
&quot;orderno&quot;: &quot;1678802336443&quot;,
&quot;time&quot;: &quot;2023-03-14T13:51:41.020Z&quot;,
&quot;mode&quot;: &quot;堂食&quot;,
&quot;menuname&quot;: &quot;芋头饺子&quot;,
&quot;code&quot;: &quot;0001&quot;,
&quot;totalprice&quot;: &quot;¥13.00&quot;,
&quot;status&quot;: &quot;已付款&quot;,
&quot;userid&quot;: &quot;64107ba272fbbcf11418db38&quot;,
&quot;__v&quot;: 0
},
{
&quot;_id&quot;: &quot;64107e324f90ee2a6db58538&quot;,
&quot;orderno&quot;: &quot;1678802936700&quot;,
&quot;time&quot;: &quot;2023-03-14T14:01:22.407Z&quot;,
&quot;mode&quot;: &quot;堂食&quot;,
&quot;menuname&quot;: &quot;上海阳春面&quot;,
&quot;code&quot;: &quot;0002&quot;,
&quot;totalprice&quot;: &quot;¥11.00&quot;,
&quot;status&quot;: &quot;已付款&quot;,
&quot;userid&quot;: &quot;64107ba272fbbcf11418db38&quot;,
&quot;__v&quot;: 0
},
...
]
}</code></pre>