接口功能
获取菜单
支持格式
JSON
HTTP请求方式
POST
请求参数
返回字段
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回结果状态。0:正常;1:错误。 |
results | object | 返回结果集 |
categoryName | string | 菜品分类名称 |
dishName | string | 菜品名称 |
dishPic | string | 菜品图片 |
price | float | 菜品价格 |
property | array | 菜品口味 |
note | array | 备注 |
{
"status": 0,
"desc": "error原因",
"data": [{
"categoryName": "套餐",
"categoryDishes": [{
"dishName": "套餐1",
"dishPic": "XXXXXX.jpg",
"price": "198",
"property": ["无辣", "少辣", "麻辣"],
"note": ["不要葱", "不要生姜", "不要蒜"]
}, {
"dishName": "套餐2",
"dishPic": "XXXXX2.jpg",
"price": "298",
"property": ["无辣", "少辣"],
"note": []
}]
}, {
"categoryName": "特色菜品",
"categoryDishes": [{
"dishName": "特色菜品1",
"dishPic": "XXXXXX.jpg",
"price": "8",
"property": ["无辣", "少辣", "麻辣"],
"note": ["不要葱", "不要生姜", "不要蒜"]
}]
}]
}