文档
测试

体重记录-查询体重和目标体重(修改)

POST
http://localhost/homePageInfo/weightTargetQuery

接口描述

新加参数userId, state=0.当天,1,三个月,2-一年,其他全部./////新加体重参数: 体重状态weightState * 0-啥都不是,1-体重,2-初始体重,3-最后体重

请求参数

参数名
类型
描述
必填
phone
int
示例:19855351192
必填
token
string
示例:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyUGhvbmUiOiIxODc3OTc5ODIxNCIsImV4cCI6MTY5MzM2MjMwMCwidXNlcklkIjo0MjA5fQ.c_gJL_70FVDIMFeI8YrmX_iqWXQUehMHXCr84HJSFDo
必填
state
int
示例:1
必填
userId
int
示例:124409
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:数据获取成功
必填
current
float
示例:84.8
必填
upperBound
float
示例:117.7
必填
weightRecords
array
数据列表
必填
albumPics
string
示例:MCheng.png
必填
area
string
示例:浙江杭州
必填
attributePic
string
示例:https://tj-data-bak-to-test20221028.oss-cn-hangzhou.aliyuncs.com/uploadFiles/images/resource/MCheng.png
必填
brandId
int
示例:2
必填
brandName
string
示例:妙智康
必填
categoryInfo
int
示例:3
必填
choice
string
示例:颜色/款式
必填
commodityType
int
示例:2
必填
courier
string
示例:免费包邮
必填
deleteStatus
int
示例:0
必填
description
string
示例:体脂秤
必填
detailPic
string
示例:134,135,136,137
必填
detailTitle
string
示例:商城首页体脂秤文案
必填
firstSend
boolean
示例:false
必填
franchiseeId
int
示例:0
必填
healthPackageId
int
示例:0
必填
hot
int
示例:1
必填
id
int
示例:2
必填
inBloodInstrument
int
示例:0
必填
inBloodInstrumentSend
int
示例:0
必填
includeBar
boolean
示例:false
必填
includeScale
boolean
示例:false
必填
infoodScale
int
示例:0
必填
infoodScaleSend
int
示例:0
必填
isFlashSaleGoods
int
示例:0
必填
isNewGoods
int
示例:0
必填
isSelect
int
示例:0
必填
isdisplay
int
示例:1
必填
isshopsee
int
示例:1
必填
labelSort
int
示例:1
必填
name
string
示例:体脂秤白色,USB款
必填
originalPrice
int
示例:328
必填
payNum
int
示例:91
必填
price
float
示例:0.1
必填
productAttribute
string
示例:白色,USB款
必填
productSN
string
示例:465465
必填
serviceDays
int
示例:0
必填
serviceIds
string
示例:付款后3天内发货,7天无理由退货
必填
serviceLabels
int
示例:0
必填
shoppingProductClassify
int
示例:5
必填
sold
int
示例:1
必填
sort
int
示例:0
必填
unit
string
示例:件
必填
units
string
示例:
必填
vipstate
int
示例:0
必填
weight
int
示例:8
必填
conclusions
array
数据列表
必填
record
int
示例:32
必填
name
string
示例:记录天数
必填
lowerBound
float
示例:5.25
必填
state
int
示例:1
必填
list
array
数据列表
必填
day
string
示例:2023/07/18 14:10
必填
weight
int
示例:70
必填
weightSource
string
示例:体重
必填
weightState
int
示例:1
必填
cumulative
float
示例:32.9
必填
target
int
示例:65
必填

说明 / 示例

{ "msg": "数据获取成功", "current": 51.2, "upperBound": 97.7, "weightRecords": [ { "albumPics": "bodyFatScaleImageWhiteDetail.png,bodyFatScaleImageWhiteDetail.png", "area": "浙江杭州", "attributePic": "https://tj-data-test.oss-cn-hangzhou.aliyuncs.com/uploadFiles/images/resource/bodyFatScaleImageWhite.png", "brandId": 2, "brandName": "妙智康", "categoryInfo": 3, "choice": "颜色/款式", "commodityType": 2, "courier": "免费包邮", "deleteStatus": 0, "description": "体脂秤", "detailPic": "1", "detailTitle": "商城首页体脂秤文案", "firstSend": false, "healthPackageId": 0, "hot": 1, "id": 2, "inBloodInstrument": 0, "inBloodInstrumentSend": 0, "includeBar": false, "includeScale": false, "infoodScale": 0, "infoodScaleSend": 0, "isSelect": 0, "isdisplay": 1, "isshopsee": 1, "name": "体脂秤白色,太阳能+USB款", "originalPrice": 328, "payNum": 14, "price": 1, "productAttribute": "白色,太阳能+USB款", "productSN": "465465", "serviceIds": "付款后3天内发货,7天无理由退货", "serviceLabels": 0, "sold": 1, "sort": 0, "unit": "件", "units": "", "vipstate": 0, "weight": 8 }, { "albumPics": "bodyFatScaleImageBlueDetail.png,bodyFatScaleImageBlueDetail.png", "area": "浙江杭州", "attributePic": "https://tj-data-test.oss-cn-hangzhou.aliyuncs.com/uploadFiles/images/resource/bodyFatScaleImageBlue.png", "brandId": 2, "brandName": "妙智康", "categoryInfo": 3, "choice": "颜色/款式", "commodityType": 2, "courier": "免费包邮", "deleteStatus": 0, "description": "体脂秤", "detailPic": "1", "detailTitle": "商城首页体脂秤文案", "firstSend": false, "healthPackageId": 0, "hot": 1, "id": 4, "inBloodInstrument": 0, "inBloodInstrumentSend": 0, "includeBar": false, "includeScale": false, "infoodScale": 0, "infoodScaleSend": 0, "isSelect": 0, "isdisplay": 1, "isshopsee": 1, "name": "体脂秤蓝色,太阳能+USB款", "originalPrice": 328, "payNum": 11, "price": 1, "productAttribute": "蓝色,太阳能+USB款", "productSN": "13", "serviceIds": "付款后3天内发货,7天无理由退货", "serviceLabels": 0, "sold": 1, "sort": 0, "unit": "件", "units": "", "vipstate": 0, "weight": 8 } ], "conclusions": [ { "record": 23, "name": "记录天数" }, { "record": -3.9, "name": "体重变化" }, { "record": -0.2, "name": "日均变化" }, { "record": 17.4, "name": "BMI" }, { "record": 0, "name": "肌肉变化(%)" }, { "record": 0, "name": "脂肪变化(%)" } ], "lowerBound": 20, "state": 1, "list": [ { "day": "2022/01/21 16:23", "weight": 55.09999847412109 }, { "day": "2022/01/23 10:29", "weight": 61.8 }, { "day": "2022/01/24 18:56", "weight": 50 }, { "day": "2022/01/25 18:08", "weight": 70 }, { "day": "2022/01/26 19:42", "weight": 54.1 }, { "day": "2022/01/27 18:51", "weight": 50 }, { "day": "2022/02/08 14:31", "weight": 51 }, { "day": "2022/02/10 09:12", "weight": 52.1 }, { "day": "2022/02/17 11:17", "weight": 55.8 }, { "day": "2022/02/24 20:16", "weight": 55.6 }, { "day": "2022/02/25 09:24", "weight": 61.1 }, { "day": "2022/02/26 19:34", "weight": 69.7 }, { "day": "2022/02/28 17:36", "weight": 50 }, { "day": "2022/03/01 08:54", "weight": 97.7 }, { "day": "2022/03/08 16:31", "weight": 76 }, { "day": "2022/03/09 07:55", "weight": 75.8 }, { "day": "2022/03/11 16:42", "weight": 75.2 }, { "day": "2022/03/12 11:43", "weight": 20 }, { "day": "2022/03/13 12:35", "weight": 50.3 }, { "day": "2022/04/13 18:37", "weight": 68.8 }, { "day": "2022/04/23 13:22", "weight": 74 }, { "day": "2022/04/26 16:59", "weight": 71.4 }, { "day": "2022/04/27 18:47", "weight": 51.2 } ], "cumulative": 16.7, "target": 56.5 }