[TOC]
简要描述
请求URL
https://food.taihuyun.vip/api/foodcash.table/tableList?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
applet_id |
是 |
string |
应用程序ID |
shop_id |
是 |
string |
门店ID |
token |
是 |
string |
用户身份验证的令牌 |
sel_date |
否 |
string |
日期,默认今天 |
table_status |
否 |
int |
餐桌状态, 0全部;10空闲;20已预定;30待结账;40待清台;50锁定 |
table_category |
否 |
int |
餐桌类型, 0全部,2大厅;3包厢;5散台;6吧台;7宴会厅 |
meal |
否 |
int |
选择餐段,1早餐;2午餐;3晚餐;4夜宵 |
返回示例
{
"code": 1,
"msg": "success",
"data": [
{
"table_id": 11,
"table_name": "一号包厢",
"people": 10,
"consume": "0.00",
"ware_price": "0.00",
"row_no": "01",
"shop_id": 1,
"category_id": {
"text": "散台",
"value": 5
},
"table_status": {
"status": 20,
"status_text": "已预定",
"data": {
"username": "第二次",
"date": "2022-12-27",
"meal": 2,
"book_id": 35
}
}
},
{
"table_id": 12,
"table_name": "二号包厢",
"people": 20,
"consume": "0.00",
"ware_price": "0.00",
"row_no": "2",
"shop_id": 1,
"category_id": {
"text": "包厢",
"value": 3
},
"table_status": {
"status": 10,
"status_text": "空闲",
"data": []
}
},
{
"table_id": 41,
"table_name": "26人大包厢",
"people": 26,
"consume": "199.00",
"ware_price": "0.00",
"row_no": "888",
"shop_id": 1,
"category_id": {
"text": "大厅",
"value": 2
},
"table_status": {
"status": 40,
"status_text": "待清台",
"data": {
"order_ids": [
"950"
],
"pay_price": 0,
"time": 7602,
"book_id": 28
}
}
},
]
}
返回参数说明
参数名 |
类型 |
说明 |
table_name |
string |
桌台名称 |
people |
string |
人数 |
table_status.status |
int |
桌台状态:10:空闲;20:已预订;30:待结账;40:待清台;50:锁定 |
table_status.data.username |
string |
预定人 |
table_status.data.date |
string |
预定时间 |
table_status.data.pay_price |
int |
待支付金额 |
table_status.data.time |
int |
用时 |
category_id.value |
int |
餐桌类型; 0全部,2大厅;3包厢;5散台;6吧台;7宴会厅 |
备注