文档
测试

查询菜谱列表

GET
/app/hospital/foodList

接口描述

查询今日菜谱列表(菜品ID、菜品名称、图片、价格)

请求参数

参数名
类型
描述
必填
food_category
str
菜品类别("11":"粥类","21":"主食","31":"荤菜","41":"素菜","51":"凉菜",)
必填
currentPage
页码
必填
pageSize
每页条数
必填

响应参数

参数名
类型
描述
必填
food_code
菜品编号
必填
name
菜品名称
必填
picture
菜品图片
必填
describe
菜品描述
必填
price
价格
必填
discount_price
折扣价格
必填
stock
库存
必填
food_type
菜品类别
必填

说明 / 示例

{ "header": { "path": "/app/hospital/foodList", "code": 200, "status": true, "msg": "" }, "data": { "data": [ { "id": 4, "food_code": "FOOD1614592051978", "name": "口水鸡", "picture": "/static/upload/image/2021-03-01/other_1614592011942_newx.jpg", "describe": "三个月大的乌鸡为材料", "price": "17", "discount_price": "13", "stock": "178", "food_category": "51", "weekday": null, "if_delete": "1", "food_type": "凉菜" }, { "id": 3, "food_code": "FOOD1614591894190", "name": "糖醋鲤鱼", "picture": "/static/upload/image/2021-03-05/other_1614903632785_newx.jpg", "describe": "新鲜活鲤鱼666永远永远", "price": "25", "discount_price": "20", "stock": "145", "food_category": "31", "weekday": null, "if_delete": "1", "food_type": "荤菜" }, { "id": 2, "food_code": "FOOD1614563663617", "name": "麻婆豆腐", "picture": "/static/upload/image/2021-03-01/other_1614563324873_newx.jpg", "describe": "味道很好", "price": "8", "discount_price": "7", "stock": "110", "food_category": "41", "weekday": null, "if_delete": "1", "food_type": "素菜" } ], "pageInfo": { "pageNum": 1, "pageSize": 10, "total": 3 } } }