(下行接口)合作方调用该接口可查询客如云商户后台所有的或指定的桌台信息
授权方式:门店授权
HTTP请求方式:POST
HTTP请求头类型:Content-Type=application/json
URI: /open/v1/table/fetchTables
详情可查看【公共说明】中的公共参数模块
参数名 | 类型 | 是否必填 | 参数描述 |
---|---|---|---|
ids | List<Long> | 是 | 桌台ID;不传值时默认查询已有的所有桌台 |
{
"ids":[37846171577807872,37846171565224960]
}
参数名 | 类型 | 是否必填 | 参数描述 |
---|---|---|---|
code | Int | 是 | 返回编码,详见错误码 |
message | String | 是 | 返回信息 |
messageUuid | String | 是 | 消息uuid |
result | List<OpenTableInfoVo> | 否 | 返回响应数据,json对象或数组,可空 |
OpenTableInfoVo
参数名 | 类型 | 是否必填 | 参数描述 |
---|---|---|---|
canBooking | Integer | 否 | 是否可预定,0.可预订,1.不可预订 |
commercialId | Long | 否 | 门店号ID |
floorId | Integer | 否 | 楼层ID |
isSmoke | Integer | 否 | 是否是吸烟区0,吸烟,1,不吸烟 |
memo | String | 否 | 备注 |
minConsum | BigDecimal | 否 | 最低消费金额,单位:元 |
modifyDateTime | Date | 否 | 更新时间 |
sort | Integer | 否 | 排序 |
status | Integer | 否 | 桌台状态;0:可用,-1:不可用,1:未生效 |
tableArea | Area | 否 | 区域信息 |
tableID | String | 否 | 桌台ID |
tableName | String | 否 | 桌台名称,同一区域不可重复 |
tableNum | String | 否 | 桌台编号 |
tablePersonCount | Integer | 否 | 桌台人数 |
tableStatus | Integer | 否 | 桌台的状态,0空闲,1就餐,2待清台,3锁定中 |
tableType | Integer | 否 | 桌台类型,0: 大厅,1: 包厢,2: 卡座,3: 露台,4: 其他 |
synFlag | String | 是 | 桌台uuid |
Area
参数名 | 类型 | 是否必填 | 参数描述 |
---|---|---|---|
areaCode | String | 否 | 区域编码 |
areaName | String | 否 | 区域名称编码 |
id | String | 否 | 区域id |
floor | Integer | 否 | 楼层 |
{
"result": [
{
"tableID": "201725075570586624",
"tableNum": "105001",
"tableName": "桌台1",
"commercialId": 810094162,
"tableType": 1,
"tableArea": {
"areaCode": "105",
"areaName": "包厢区",
"id": 201724816828167168,
"floor": 3
},
"tablePersonCount": 18,
"minConsum": 0.00,
"canBooking": 0,
"isSmoke": null,
"floorId": null,
"sort": 1000,
"status": 0,
"tableStatus": 0,
"memo": null,
"modifyDateTime": 1567059254000,
"synFlag": "c054642f60a94183b3bf638eb8ead775"
},
{
"tableID": "201725075918713856",
"tableNum": "105002",
"tableName": "桌台2",
"commercialId": 810094162,
"tableType": 1,
"tableArea": {
"areaCode": "105",
"areaName": "包厢区",
"id": 201724816828167168,
"floor": 3
},
"tablePersonCount": 18,
"minConsum": 0.00,
"canBooking": 0,
"isSmoke": null,
"floorId": null,
"sort": 1000,
"status": 0,
"tableStatus": 0,
"memo": null,
"modifyDateTime": 1567059254000,
"synFlag": "5873f300be484368ab01045f5a6fb562"
}
],
"code": 0,
"message": "成功[OK]",
"messageUuid": "cfd7d95cf5e94f03b94fe36083cd935c",
"apiMessage": null
}