文档
测试
彭国强

获取自定义食物

POST
http://localhost/userSelfManagemnet/getCustomFood

请求头

参数名
类型
描述
必填

请求参数

参数名
类型
描述
必填
phone
int
示例:18797854742
必填
token
string
示例:bcc80d8401047a7756c7efd8748d9d64
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:获取成功
必填
state
int
示例:1
必填
customFoods
array
数据列表
必填
foodType
int
示例:2
必填
name
string
示例:西红柿炒鸡蛋2
必填
id
int
示例:16
必填
energy
string
示例:200.0千卡
必填

响应格式

{ "msg": "获取成功", "state": 1, "customFoods": [ { "unit": "千卡", "foodType": 2, "name": "牛肉", "weight": 100, "id": 57, "foodPic": "https://www.365healthy.net/uploadFiles/images/recipe/35ae0a6e-cc30-403e-bcec-62b2116b11a4.png", "energy": 0, "weightUnit": "克" } ] }