配餐软件
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.

311 lines
6.4 KiB

2 years ago
# 1. ʳ�׷���
> GET /api/menu/analysis
### ����:
```text
id=1 // ʳ��ID, ����
day=3 // ��һ��, Ĭ�ϵ���
crow=xxx //��Ⱥ,Ĭ�ϵ�һ����Ⱥ
```
### ����:
~~~json
{
1 year ago
"body": {
"day": 1,
"crow": "6��~8�� Ů",
"meals": [
"����",
"����",
"����"
],
"types": {
"����": 1,
"�����༰����Ʒ": 1,
"��Ϻ��": 1,
"����": 5,
"������": 1,
"������": 3,
"�̼�����Ʒ": 1,
"��ζƷ": 1,
"�߲���": 6
},
"ingredient": [
{
"nutrition": "��ʳ��ά/g",
"virtual": 4.8,
"ul": "-",
"standard": "20~20",
"overload": "-76.00%",
"conclusion": "����"
},
{
"nutrition": "��/mg",
"virtual": 490,
"ul": "-",
"standard": "750~750",
"overload": "-34.67%",
"conclusion": "����"
},
{
"nutrition": "����B1/mg",
"virtual": 1.05,
"ul": "-",
"standard": "0.9~0.9",
"overload": "16.67%",
"conclusion": "����"
},
{
"nutrition": "̼ˮ������/g",
"virtual": 267.4,
"ul": "-",
"standard": "193.75~251.88",
"overload": "6.16%",
"conclusion": "����"
},
{
"nutrition": "����B2/mg",
"virtual": 0.62,
"ul": "-",
"standard": "0.9~0.9",
"overload": "-31.11%",
"conclusion": "����"
},
{
"nutrition": "����A/��gRAE",
"virtual": 516,
"ul": "-",
"standard": "450~450",
"overload": "14.67%",
"conclusion": "����"
},
{
"nutrition": "����C/mg",
"virtual": 117.5,
"ul": "-",
"standard": "60~60",
"overload": "95.83%",
"conclusion": "����"
},
{
"nutrition": "��/mg",
"virtual": 953.9,
"ul": "-",
"standard": "��5000",
"overload": "-",
"conclusion": "����"
},
{
"nutrition": "������/g",
"virtual": 70.2,
"ul": "-",
"standard": "32~48",
"overload": "46.25%",
"conclusion": "����"
},
{
"nutrition": "֬��/g",
"virtual": 47.4,
"ul": "-",
"standard": "34.44~51.67",
"overload": "37.63%",
"conclusion": "����"
},
{
"nutrition": "��/mg",
"virtual": 10.8,
"ul": "-",
"standard": "12~12",
"overload": "-10.00%",
"conclusion": "����"
},
{
"nutrition": "п/mg",
"virtual": 7.15,
"ul": "-",
"standard": "6.5~6.5",
"overload": "10.00%",
"conclusion": "����"
},
{
"nutrition": "����/kcal",
"virtual": 1755,
"ul": "-",
"standard": "1395~1705",
"overload": "2.93%",
"conclusion": "����"
}
]
2 years ago
},
1 year ago
"code": 200,
"desc": "�ɹ�",
"success": true
2 years ago
}
~~~
1 year ago
# 2. ��������
2 years ago
> GET /api/menu/analysis/energy
### ����:
```text
id=1 // ʳ��ID, ����
day=3 // ��һ��, Ĭ�ϵ���
crow=xxx //��Ⱥ,Ĭ�ϵ�һ����Ⱥ
```
### ����:
~~~json
{
1 year ago
"body": {
"day": 1,
"crow": "6��~8�� Ů",
"meals": [
"����",
"����",
"����"
],
"energy": [
{
"name": "������/������",
"standard": "10~20",
"value": 15.80,
"conclusion": "����"
},
{
"name": "֬��/������",
"standard": "20~30",
"value": 24.01,
"conclusion": "����"
},
{
"name": "̼ˮ������/������",
"standard": "50~60",
"value": 60.19,
"conclusion": "����"
}
]
},
"code": 200,
"desc": "�ɹ�",
"success": true
2 years ago
}
~~~
1 year ago
# 3. ���ͷ���
2 years ago
> GET /api/menu/analysis/types
### ����:
```text
id=1 // ʳ��ID, ����
crow=xxx //��Ⱥ,Ĭ�ϵ�һ����Ⱥ
```
### ����:
~~~json
{
1 year ago
"body": {
"crow": "6��~8�� Ů",
"dayRule": {
"1": [
{
"day": 1,
"name": "��������",
"standard": "10~100",
"measurement": "weight",
"supplied": 320,
"lack": -220
}
]
2 years ago
},
1 year ago
"weekRule": [
{
"name": "��������",
"standard": "10~100",
"measurement": "weight",
"supplied": 320,
"lack": -220
}
]
},
"code": 200,
"desc": "�ɹ�",
"success": true
2 years ago
}
1 year ago
~~~
# 4. ��⿷�ʽ����
> GET /api/menu/analysis/poly
### ����:
```text
id=1 // ʳ��ID, ����
crow=xxx //��Ⱥ,Ĭ�ϵ�һ����Ⱥ
```
### ����:
~~~json
{
"body": {
"crow": "6��~8�� Ů",
"0": { // �ܼ�
"��": 10,
"��": 6
},
"1": { // ��һ��
"��": 10,
"��": 6
},
"2": { // �ڶ���
"��": 10,
"��": 6
}
},
"code": 200,
"desc": "�ɹ�",
"success": true
}
1 year ago
~~~
# 4. ��⿷�ʽ����
> GET /api/menu/analysis/sugar
### ����:
```text
id=1 // ʳ��ID, ����
crow=xxx //��Ⱥ,Ĭ�ϵ�һ����Ⱥ
```
### ����:
~~~json
{
"body": {
"crow": "6��~8�� Ů",
"salt": { // ��
"1": 10,
"2": 20,
"3": 15
},
"oil": { // ��
"1": 10,
"2": 20,
"3": 15
},
"sugar": { // ��
"1": 10,
"2": 20,
"3": 15
},
},
"code": 200,
"desc": "�ɹ�",
"success": true
}
~~~