- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
上报刷牙报告(优化得分后)
POST
https://test.myusmile.online/user/brushRecord/saveRecord/v3
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
data
array [object {47}]
必需
id
integer
主键ID
updateTimestamp
integer
数据版本号(毫秒时间戳)
userId
string
用户usmid
deviceId
string
牙刷硬件码
uploadDeviceSN
string
数据上传终端标识,当前为中控sn
pattern
string
刷牙模式
strengthLevel
string
刷牙档位
standardDuration
integer
刷牙标准时长 默认2min
actualDuration
integer
本次刷牙时长
createTime
string
时间戳,秒
repairBrush
enum<integer>
0:不需要补刷,1:需要补刷,2:已完成补刷
枚举值:
012
durationScore
integer
刷牙时间分数
zoneDurationScore
integer
分区刷牙时间分数
coverage
integer
覆盖率
coverageScore
integer
覆盖率评分
headUsedDayScore
integer
刷头使用天数评分
poseErrorCount
integer
姿势错误次数
overpressCount
integer
过压次数
score
integer
本次刷牙评分
plaqueResiduePercent
integer
牙菌斑残留百分比
totalArea
integer
总区域数
totalSurface
integer
总面数
remindReport
string
所有异常提醒统计
surfaceCoverReport
string
各个面的刷牙覆盖时长
leftDown
string
左下区评分
centerDown
string
中下区评分
rightDown
string
右下区评分
leftUp
string
左上区评分
centerUp
string
中上区评分
rightUp
string
右上区评分
dayTime
string
刷牙日期
pressureScore
integer
压力感应评分
strengthValue
integer
压力感应百分比
deleteStatus
enum<integer>
删除状态
枚举值:
01
metaData
string
扩展字段
timeType
enum<string>
时间类型
枚举值:
12
paramSwitch
string
全口参数开关
timeHb
integer
全口横刷时长
factorSwitch
string
区域牙膜开关
vecTimeDisplay
string
区域刷牙时长呈现百分比
vecTimeOpDisplay
string
区域过压时长呈现百分比
vecTimeHbDisplay
string
区域横刷时长呈现百分比
vecCoverage
string
区域覆盖率
otherData
string
可选
algoVer
integer
算法版本号
protocolVer
integer
协议版本号
timestampEnd
integer
刷牙结束时间
示例
{
"data": [
{
"id": 0,
"updateTimestamp": 0,
"userId": "string",
"deviceId": "string",
"uploadDeviceSN": "string",
"pattern": "string",
"strengthLevel": "string",
"standardDuration": 0,
"actualDuration": 0,
"createTime": "string",
"repairBrush": 0,
"durationScore": 0,
"zoneDurationScore": 0,
"coverage": 0,
"coverageScore": 0,
"headUsedDayScore": 0,
"poseErrorCount": 0,
"overpressCount": 0,
"score": 0,
"plaqueResiduePercent": 0,
"totalArea": 0,
"totalSurface": 0,
"remindReport": "string",
"surfaceCoverReport": "string",
"leftDown": "string",
"centerDown": "string",
"rightDown": "string",
"leftUp": "string",
"centerUp": "string",
"rightUp": "string",
"dayTime": "string",
"pressureScore": 0,
"strengthValue": 0,
"deleteStatus": 0,
"metaData": "string",
"timeType": "1",
"paramSwitch": "string",
"timeHb": 0,
"factorSwitch": "string",
"vecTimeDisplay": "string",
"vecTimeOpDisplay": "string",
"vecTimeHbDisplay": "string",
"vecCoverage": "string",
"otherData": "string",
"algoVer": 0,
"protocolVer": 0,
"timestampEnd": 0
}
]
}
示例代码
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/brushRecord/saveRecord/v3' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"id": 0,
"updateTimestamp": 0,
"userId": "string",
"deviceId": "string",
"uploadDeviceSN": "string",
"pattern": "string",
"strengthLevel": "string",
"standardDuration": 0,
"actualDuration": 0,
"createTime": "string",
"repairBrush": 0,
"durationScore": 0,
"zoneDurationScore": 0,
"coverage": 0,
"coverageScore": 0,
"headUsedDayScore": 0,
"poseErrorCount": 0,
"overpressCount": 0,
"score": 0,
"plaqueResiduePercent": 0,
"totalArea": 0,
"totalSurface": 0,
"remindReport": "string",
"surfaceCoverReport": "string",
"leftDown": "string",
"centerDown": "string",
"rightDown": "string",
"leftUp": "string",
"centerUp": "string",
"rightUp": "string",
"dayTime": "string",
"pressureScore": 0,
"strengthValue": 0,
"deleteStatus": 0,
"metaData": "string",
"timeType": "1",
"paramSwitch": "string",
"timeHb": 0,
"factorSwitch": "string",
"vecTimeDisplay": "string",
"vecTimeOpDisplay": "string",
"vecTimeHbDisplay": "string",
"vecCoverage": "string",
"otherData": "string",
"algoVer": 0,
"protocolVer": 0,
"timestampEnd": 0
}
]
}'
返回响应
🟢200成功
application/json
Body
flag
boolean
必需
code
integer
必需
message
string
必需
desc
string
可选
data
array [object {8}] | null
必需
id
integer
必需
updateTimestamp
integer
必需
deviceId
string
必需
createTime
string
必需
habitBrushTime
string | null
必需
habitCoverageRate
string | null
必需
cariesRate
string | null
必需
cariesRateAlgo
integer | null
必需
示例
{
"flag": true,
"code": 20000,
"message": "save succeed",
"data": [
{
"id": 678856,
"updateTimestamp": 1713752986978,
"deviceId": "74:4d:bd:95:7c:22",
"createTime": "1713520717",
"habitBrushTime": null,
"habitCoverageRate": null,
"cariesRate": null,
"cariesRateAlgo": null
}
]
}