文档
测试
彭国强

上传早午晚餐饮食记录

POST
http://localhost/userSelfManagemnet/uploadDietRecord

接口描述

上传用户饮食记录

请求头

参数名
类型
描述
必填

请求参数

参数名
类型
描述
必填
phone
int
示例:18797854742
必填
token
string
示例:bcc80d8401047a7756c7efd8748d9d64
必填
foods
string
示例:[{"id":20,"weight":195.4,"diningPoint":0,"foodType":2},{"id":103,"weight":165.3,"diningPoint":0,"foodType":1}]
必填
uploadType
int
0 表示上传 1表示更换套餐
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:提交成功
必填
state
int
示例:1
必填

响应格式

[{ "id":20, 食物对应的id "weight":195.4, 重量 "diningPoint":0, 用餐时间 0早 1午 2晚 3早上加餐 4中午加餐 5 晚餐加餐 "foodType":2 食物类型 1 食材库里的,常见,搜索栏 2 自定义 3 套餐 }, { "id":103, "weight":165.3, "diningPoint":0, "foodType":1 } ]