营养餐食保存接口
<p><strong>迭代版本:</strong>2.8.30(新增)</p>
<p><strong>简要描述:</strong></p>
<ul>
<li>营养日志保存接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><a href="http://aky.mynatapp.cc/chronic/nutritionRecord/save">http://aky.mynatapp.cc/chronic/nutritionRecord/save</a></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST/GET</li>
<li>Content-Type:application/json</li>
</ul>
<p><strong>参数:</strong>
菜谱
{
"totalEnergy":1000,
"name":"宫爆鸡丁",
"weight":2,
"energy":150,
"type":1, //0,1,2 早中晚
"url":"<a href="http://www.baidu.com/imag/amg.png">http://www.baidu.com/imag/amg.png</a>",
"unit":"克",
"dietType":0 //0为识别,1.文字
}
文本
{
"totalEnergy":1000,
"content":"早上喝了牛奶",
"energy":0,
"type":1, //0,1,2 早中晚
"dietType":1 //0为识别,1.文字
}
<strong>返回示例</strong></p>
<pre><code>{
"retcode": "0000",
"errMsg": "操作成功",
"body": {
"standardEnergy": 400, //标准摄入量
"totalEnergy": 1000, //总热量
"id": 1,
"actualEnergy": 150 //实际摄入量
}
}
</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>