添加
POST
http://localhost:8080/manage/food/addOrUpdate
接口描述
根据请求的数据进行数据的增加
请求参数
参数名
类型
描述
必填
food_name
string
示例:茎秆植物
必填
one_category_id
int
示例:2
必填
two_category_id
int
示例:2
必填
shop_id
int
示例:4(店铺id)
必填
price
int
示例:12(价格)
可选
publish
int
示例:1(上下架状态1下架,2上架,默认为1)
可选
food_units
string
示例:千克(计量单位)
可选
food_description
string
示例:Good(评价)
可选
响应参数
参数名
类型
描述
必填
status
int
示例:200
必填
msg
string
示例:添加菜品成功
必填