文档
测试

根据id获取菜品信息

POST
localhost:8080/insoApp/restaurant/info/getRestaurantDishesById

接口描述

根据id获取菜品信息

请求参数

参数名
类型
描述
必填
id
int
菜品id
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
id
int
菜品id
必填
restaurantId
int
餐厅id
必填
dishesName
string
菜品名字
必填
imagePath
string
菜品图片
必填
cookingStyle
string
菜品系列,多个用逗号分隔
必填
price
int
价格
必填
dosing
string
配料清单
必填
componentType
int
分量类型(1:一人份;2:二人份;3:三人份;4:四人份;5:不限)
必填
specification
string
烹饪规格(json字符串存储)
必填
buyStatus
int
是否售完(0:否;1:是)
必填
timeCreate
string
创建时间
必填
timeModified
string
修改时间
必填
isdeleted
int
是否删除(0否1是)
必填

响应示例

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