获取购物车中商品的接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取购物车中商品的接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:3000/front/api/cart/getmenus</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">menuids</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>多个商品id用逗号隔开,例:6409840e96966a97cc8b7d78,6409841e96966a97cc8b7d7b</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;docs&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>