餐桌分类
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取餐桌分类接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://food.taihuyun.vip/api/foodcash.base/meals?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5</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;">applet_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>应用程序ID</td>
</tr>
<tr>
<td style="text-align: left;">shop_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店ID</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户身份验证的令牌</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 1,
"msg": "success",
"data": [
{
"id": 2,
"category_name": "大厅",
"update_time": "2022-06-30 11:38:45",
"create_time": "2022-06-14 10:04:30"
},
{
"id": 3,
"category_name": "包厢",
"update_time": "2022-06-14 10:04:35",
"create_time": "2022-06-14 10:04:35"
},
{
"id": 5,
"category_name": "散台",
"update_time": "2022-06-28 16:08:04",
"create_time": "2022-06-28 16:08:04"
},
{
"id": 6,
"category_name": "吧台",
"update_time": "2022-09-08 12:35:27",
"create_time": "2022-09-08 12:35:27"
},
{
"id": 7,
"category_name": "宴会厅",
"update_time": "2022-09-29 15:34:16",
"create_time": "2022-09-29 15:34:16"
}
]
}</code></pre>
<h5>返回参数说明</h5>
<ul>
<li>返回状态代码: 200</li>
</ul>
<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;">id</td>
<td style="text-align: left;">int</td>
<td>餐桌类型; 0全部,2大厅;3包厢;5散台;6吧台;7宴会厅</td>
</tr>
<tr>
<td style="text-align: left;">category_name</td>
<td style="text-align: left;">string</td>
<td>餐桌名称</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看基本参数中的参数说明</li>
</ul>