ordermeal

点餐系统


查询分类下的所有商品

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>查询指定分类下的所有商品接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:3000/front/api/menus/catmenus/:catname</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;">catname</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>商品分类名称</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;6409840e96966a97cc8b7d78&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;芋头饺子&amp;quot;, &amp;quot;price&amp;quot;: 13, &amp;quot;imgpath&amp;quot;: &amp;quot;uploads/1678345553685.png&amp;quot;, &amp;quot;specifications&amp;quot;: &amp;quot;小份15个¥16.00=====小份16个¥16.00&amp;quot;, &amp;quot;kind&amp;quot;: &amp;quot;汤饺=====蒸饺&amp;quot;, &amp;quot;enable&amp;quot;: true, &amp;quot;catname&amp;quot;: &amp;quot;饺子&amp;quot;, &amp;quot;__v&amp;quot;: 0 }, { &amp;quot;_id&amp;quot;: &amp;quot;6409841e96966a97cc8b7d7b&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;韭菜饺子&amp;quot;, &amp;quot;price&amp;quot;: 13, &amp;quot;imgpath&amp;quot;: &amp;quot;uploads/1678345595640.png&amp;quot;, &amp;quot;specifications&amp;quot;: &amp;quot;小份15个¥16.00=====大份22个¥30.00&amp;quot;, &amp;quot;kind&amp;quot;: &amp;quot;干饺=====汤饺&amp;quot;, &amp;quot;enable&amp;quot;: true, &amp;quot;catname&amp;quot;: &amp;quot;饺子&amp;quot;, &amp;quot;__v&amp;quot;: 0 }, ... ] }</code></pre>

页面列表

ITEM_HTML