ordermeal

点餐系统


查询用户所有订单接口

<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>{ &amp;quot;error_code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;获取订单成功!&amp;quot;, &amp;quot;data&amp;quot;: [ { &amp;quot;_id&amp;quot;: &amp;quot;64107bed72fbbcf11418db49&amp;quot;, &amp;quot;orderno&amp;quot;: &amp;quot;1678802336443&amp;quot;, &amp;quot;time&amp;quot;: &amp;quot;2023-03-14T13:51:41.020Z&amp;quot;, &amp;quot;mode&amp;quot;: &amp;quot;堂食&amp;quot;, &amp;quot;menuname&amp;quot;: &amp;quot;芋头饺子&amp;quot;, &amp;quot;code&amp;quot;: &amp;quot;0001&amp;quot;, &amp;quot;totalprice&amp;quot;: &amp;quot;¥13.00&amp;quot;, &amp;quot;status&amp;quot;: &amp;quot;已付款&amp;quot;, &amp;quot;userid&amp;quot;: &amp;quot;64107ba272fbbcf11418db38&amp;quot;, &amp;quot;__v&amp;quot;: 0 }, { &amp;quot;_id&amp;quot;: &amp;quot;64107e324f90ee2a6db58538&amp;quot;, &amp;quot;orderno&amp;quot;: &amp;quot;1678802936700&amp;quot;, &amp;quot;time&amp;quot;: &amp;quot;2023-03-14T14:01:22.407Z&amp;quot;, &amp;quot;mode&amp;quot;: &amp;quot;堂食&amp;quot;, &amp;quot;menuname&amp;quot;: &amp;quot;上海阳春面&amp;quot;, &amp;quot;code&amp;quot;: &amp;quot;0002&amp;quot;, &amp;quot;totalprice&amp;quot;: &amp;quot;¥11.00&amp;quot;, &amp;quot;status&amp;quot;: &amp;quot;已付款&amp;quot;, &amp;quot;userid&amp;quot;: &amp;quot;64107ba272fbbcf11418db38&amp;quot;, &amp;quot;__v&amp;quot;: 0 }, ... ] }</code></pre>

页面列表

ITEM_HTML