ordermeal

移动端点餐系统


菜品搜索

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>菜品搜索</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:8000/front/api/menu/search/:keywords</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;">:keywords</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;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;\_id&amp;quot;: &amp;quot;6409842e96966a97cc8b7d7e&amp;quot;, * &amp;quot;name&amp;quot;: &amp;quot;香菜饺子&amp;quot;, * &amp;quot;price&amp;quot;: 14, * &amp;quot;imgpath&amp;quot;: &amp;quot;uploads/1678345703511.png&amp;quot;, * &amp;quot;specifications&amp;quot;: &amp;quot;小份15个¥16.00=====中份13个¥25.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;}\] }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">error_code</td> <td style="text-align: left;">number</td> <td>错误码,0</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>返回值,查询成功;</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">string</td> <td>查询菜品数据</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML