配餐软件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.6 KiB

1 year ago
# 大屏展示
1 year ago
# 1. 查询本周那些天有食谱(大屏显示)
1 year ago
> GET /api/menu/display
1 year ago
### 输出:
~~~json
{
"body": [
1,2,3,4,5,6,7
],
"code": 200,
"desc": "成功",
"success": true
}
~~~
# 2. 查询指定日期食谱列表(大屏显示)
> GET /api/menu/display?day=1
1 year ago
### 输出:
~~~json
{
"body": [
{"id": 1, "name": "食谱名字"}
],
"code": 200,
"desc": "成功",
"success": true
}
~~~
1 year ago
# 3. 查询指定食谱指定日期带量菜品(大屏显示)
1 year ago
1 year ago
> GET /api/menu/display?menuId=1&day=1 (day默认是当天)
1 year ago
### 输出:
~~~json
{
"body": [
{
"day": 1,
"dish": 1,
"id": 1,
"ingredient": [
{
"isMain": true,
"key": "011101",
"value": {
"轻体力": 500,
"重体力": 300
}
},
{
"isMain": false,
"key": "2101001",
"value": {
"轻体力": 500,
"重体力": 300
}
}
],
"marks": "主食",
"poly": "蒸",
"meal": "早餐",
"menu": 1,
"name": "番茄炒蛋",
"vender": 1
},
{
"day": 1,
"dish": 2,
"id": 3,
"ingredient": [
{
"isMain": true,
"key": "011101",
"value": {
"轻体力": 500,
"重体力": 300
}
}
],
"marks": "主食",
"poly": "蒸",
"meal": "早餐",
"menu": 1,
"name": "番茄炒鸡蛋",
"vender": 1
}
],
"code": 200,
"desc": "成功",
"success": true
}