- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
根据版本号(毫秒时间戳)获取相应的刷牙记录列表
POST
https://test.myusmile.online/user/v2/brushRecord/getRecordListByUpdateTimestamp
FROM app_historical ah LEFT JOIN us_brush_record_stat ubrs ON ah.id = ubrs.brush_record_id
WHERE ah.usmid = 1722911974266699777 AND ah.update_timestamp = 1701075699812
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
userId
string
用户id
updateTimestamp
string
要查询的记录版本号
示例
{
"updateTimestamp": 1694587521476,
"userId": "1701847139726852097"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.myusmile.online/user/v2/brushRecord/getRecordListByUpdateTimestamp' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"updateTimestamp": 1694587521476,
"userId": "1701847139726852097"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"flag": true,
"code": 20000,
"message": "查询成功",
"data": [
{
"id": 582954,
"updateTimestamp": 1694587521476,
"userId": "1701847139726852097",
"deviceId": "eb:56:03:38:13:f7",
"uploadDeviceSN": null,
"pattern": "9",
"strengthLevel": "5",
"standardDuration": 120,
"actualDuration": 91,
"createTime": "1694587428",
"repairBrush": 0,
"durationScore": 35,
"zoneDurationScore": null,
"coverage": 0,
"coverageScore": 35,
"headUsedDayScore": null,
"poseErrorCount": null,
"overpressCount": 0,
"score": 54,
"plaqueResiduePercent": 0,
"totalArea": 6,
"totalSurface": 16,
"remindReport": "[{\"remindCount\":79,\"side\":0,\"type\":10},{\"remindCount\":9,\"side\":5,\"type\":10},{\"remindCount\":1,\"side\":13,\"type\":10}]",
"surfaceCoverReport": "[{\"area\":0,\"side\":0,\"time\":79300},{\"area\":0,\"side\":1,\"time\":0},{\"area\":0,\"side\":2,\"time\":0},{\"area\":0,\"side\":3,\"time\":0},{\"area\":0,\"side\":4,\"time\":0},{\"area\":0,\"side\":5,\"time\":9500},{\"area\":0,\"side\":6,\"time\":0},{\"area\":0,\"side\":7,\"time\":0},{\"area\":0,\"side\":8,\"time\":900},{\"area\":0,\"side\":9,\"time\":0},{\"area\":0,\"side\":10,\"time\":0},{\"area\":0,\"side\":11,\"time\":0},{\"area\":0,\"side\":12,\"time\":0},{\"area\":0,\"side\":13,\"time\":1500},{\"area\":0,\"side\":14,\"time\":0},{\"area\":0,\"side\":15,\"time\":0}]",
"leftDown": null,
"centerDown": null,
"rightDown": null,
"leftUp": null,
"centerUp": null,
"rightUp": null,
"dayTime": "2023-09-13",
"pressureScore": 0,
"strengthValue": null,
"deleteStatus": 0,
"metaData": null,
"timeType": "1",
"habitBrushTime": null,
"habitCoverageRate": null,
"cariesRate": null,
"cariesRateAlgo": 0
}
]
}