- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
新增历史数据记录
开发中
POST
https://test.myusmile.online/user/saveHistorical
设备模块
请求参数
Query 参数
authUserId
string
可选
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
deviceId
string
设备id
mebId
string
可选
day
string
可选
data
array [object {32}]
可选
id
integer
编号
updateTimestamp
integer
可选
usmid
string
登录id
all_count
integer
数据总条数
current_no
integer
当前数据序号
part_no1
integer
当前数据是第几包
part_no2
integer
当前数据是第几包
part_no3
integer
当前数据是第几包
brush_pattern
string
刷牙模式
brush_efforts
string
刷牙档位
brush_total_duration
integer
可选
brush_current_duration
integer
本次刷牙时间长度
time
string
时间戳,单位秒
brush_duration_score
integer
刷牙时间分数
zone_duration_score
integer
分区刷牙时间分数
coverage
integer
覆盖率
coverageScore
integer
覆盖率分数
pose_error_count
integer
姿势错误次数
brush_current_score
integer
本次刷牙评分
leftDown
string
左下区评分json
centerDown
string
中下区评分
rightDown
string
右下区评分
leftUp
string
左上区评分
centerUp
string
中上区评分
rightUp
string
右上区评分
dayTime
string
刷牙日期
deviceId
string
牙刷硬件码
color
string
中下区评分
time_type
string
时间类型
pressure_score
integer
压力感应
默认值:
0
brush_strength
integer
压力感应
默认值:
0
deleteStatus
integer
删除状态
startTime
string
起始时间
endTime
string
结束时间
pageNo
integer
页码
默认值:
1
pageSize
integer
每页数量
默认值:
10
示例
{
"deviceId": "string",
"mebId": "string",
"day": "string",
"data": [
{
"id": 0,
"updateTimestamp": 0,
"usmid": "string",
"all_count": 0,
"current_no": 0,
"part_no1": 0,
"part_no2": 0,
"part_no3": 0,
"brush_pattern": "string",
"brush_efforts": "string",
"brush_total_duration": 0,
"brush_current_duration": 0,
"time": "string",
"brush_duration_score": 0,
"zone_duration_score": 0,
"coverage": 0,
"coverageScore": 0,
"pose_error_count": 0,
"brush_current_score": 0,
"leftDown": "string",
"centerDown": "string",
"rightDown": "string",
"leftUp": "string",
"centerUp": "string",
"rightUp": "string",
"dayTime": "string",
"deviceId": "string",
"color": "string",
"time_type": "string",
"pressure_score": "0",
"brush_strength": "0",
"deleteStatus": 0
}
],
"startTime": "string",
"endTime": "string",
"pageNo": "1",
"pageSize": "10"
}
示例代码
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/saveHistorical?authUserId' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"mebId": "string",
"day": "string",
"data": [
{
"id": 0,
"updateTimestamp": 0,
"usmid": "string",
"all_count": 0,
"current_no": 0,
"part_no1": 0,
"part_no2": 0,
"part_no3": 0,
"brush_pattern": "string",
"brush_efforts": "string",
"brush_total_duration": 0,
"brush_current_duration": 0,
"time": "string",
"brush_duration_score": 0,
"zone_duration_score": 0,
"coverage": 0,
"coverageScore": 0,
"pose_error_count": 0,
"brush_current_score": 0,
"leftDown": "string",
"centerDown": "string",
"rightDown": "string",
"leftUp": "string",
"centerUp": "string",
"rightUp": "string",
"dayTime": "string",
"deviceId": "string",
"color": "string",
"time_type": "string",
"pressure_score": "0",
"brush_strength": "0",
"deleteStatus": 0
}
],
"startTime": "string",
"endTime": "string",
"pageNo": "1",
"pageSize": "10"
}'
返回响应
🟢200成功
*/*
Body
Result
flag
boolean
可选
code
integer
可选
message
string
可选
data
object
可选
示例
{
"flag": true,
"code": 0,
"message": "string",
"data": {}
}