文档
测试

获取用户体重记录列表

GET
http://127.0.0.1/app/customer/home/getUserWeightRecords

接口描述

列表升序排序,默认查找7天体重记录

请求参数

参数名
类型
描述
必填
phone
string
{{phone}}
必填
token
string
{{token}}
必填
recordDays
int
查找的记录天数
可选

响应参数

参数名
类型
描述
必填
msg
string
示例:获取成功
必填
weightRecordList
array
数据列表
必填
id
int
示例:545
必填
recordDate
string
示例:2022-04-07 13:45 记录日期
必填
userId
int
示例:4436
必填
weight
float
示例:60.4 体重记录
必填
weightSource
string
体重数据来源
必填
state
int
示例:1
必填
maxValue
double
列表最大值
必填
minValue
double
列表最小值
必填

说明 / 示例

{ "msg": "获取成功", "weightRecordList": [ { "id": 545, "recordDate": "2022-04-07 13:45", "userId": 4436, "weight": 60.4 }, { "id": 710, "recordDate": "2022-07-07 10:23", "userId": 4436, "weight": 50.03 } ], "state": 1 }