关键字查询商品接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>关键字查询商品接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:3000/front/api/menus/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>{
&quot;error_code&quot;: 0,
&quot;msg&quot;: &quot;商品获取成功!&quot;,
&quot;data&quot;: [
{
&quot;_id&quot;: &quot;6409840e96966a97cc8b7d78&quot;,
&quot;name&quot;: &quot;芋头饺子&quot;,
&quot;price&quot;: 13,
&quot;imgpath&quot;: &quot;uploads/1678345553685.png&quot;,
&quot;specifications&quot;: &quot;小份15个¥16.00=====小份16个¥16.00&quot;,
&quot;kind&quot;: &quot;汤饺=====蒸饺&quot;,
&quot;enable&quot;: true,
&quot;catname&quot;: &quot;饺子&quot;
},
{
&quot;_id&quot;: &quot;6409841e96966a97cc8b7d7b&quot;,
&quot;name&quot;: &quot;韭菜饺子&quot;,
&quot;price&quot;: 13,
&quot;imgpath&quot;: &quot;uploads/1678345595640.png&quot;,
&quot;specifications&quot;: &quot;小份15个¥16.00=====大份22个¥30.00&quot;,
&quot;kind&quot;: &quot;干饺=====汤饺&quot;,
&quot;enable&quot;: true,
&quot;catname&quot;: &quot;饺子&quot;
},
...
]
}</code></pre>