文档
测试

用户扫码,获取餐厅菜单信息

GET
localhost:8080/insoApp/restaurant/getCodeResult

请求参数

参数名
类型
描述
必填
restaurantId
int
餐厅id 示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:成功
必填
data
array
数据列表
必填
id
int
菜品 id 示例:1
必填
restaurantId
int
餐厅id 示例:1
必填
dishesName
string
菜品名称 示例:佛跳墙
必填
imagePath
string
菜品图片 示例:是大法师的发
必填
cookingStyle
string
示例:1 菜品系列,多个用逗号分隔
必填
price
int
示例:11 菜品价格
必填
dosing
string
配料清单 示例:辣椒 大蒜 ,生姜,香葱
必填
componentType
int
分量 分类类型 示例:1 (1:一人份;2:二人份;3:三人份;4:四人份;5:不限)
必填
specification
string
烹调规格(json字符串存储) 示例:慢火熬制7749小时
必填
buyStatus
int
是否售完(0:否;1:是) 示例:0
必填
timeCreate
string
创建时间 示例:2020-10-30 18:02:27
必填

说明 / 示例

{ "code": 200, "msg": "成功", "data": [ { "id": 1, "restaurantId": 1, "dishesName": "佛跳墙", "imagePath": "是大法师的发", "cookingStyle": "1", "price": 11, "dosing": "大首付多少", "componentType": 1, "specific": "慢火熬制7749小时", "buyStatus": 0, "timeCreate": "2020-10-30 18:02:27", "timeModified": null, "isdeleted": null }, { "id": 2, "restaurantId": 1, "dishesName": "佛跳墙", "imagePath": "是大法师的发", "cookingStyle": "1", "price": 11, "dosing": "大首付多少", "componentType": 1, "specific": "慢火熬制7749小时", "buyStatus": 0, "timeCreate": "2020-10-30 18:02:27", "timeModified": null, "isdeleted": null }, { "id": 3, "restaurantId": 1, "dishesName": "佛跳墙", "imagePath": "是大法师的发", "cookingStyle": "1", "price": 11, "dosing": "大首付多少", "componentType": 1, "specific": "慢火熬制7749小时", "buyStatus": 0, "timeCreate": "2020-10-30 18:02:27", "timeModified": null, "isdeleted": null } ] }