- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
获取比请求版本号(毫秒时间戳)更高的版本号列表done
POST
https://test.myusmile.online/user/device/getNewerTimestampList/v2
查询表 app_account_device是否存在 update_timestamp大于传入时间的数据(参数updateTimestamp=0)
判断设备 端云是否同步,返回云侧有端侧没有的数据时间戳列表
返回:List,用户名下所有绑定及解绑的设备信息,与指定updateTimestamp匹配的数据
后台逻辑:
从 app_account_device 表中,查找该user的设备绑定关系中,updateTimestamp字段大于传入 updateTimestamp 的 updateTimestamp列表,作为一个Long数组返回客户端
查询语句:
SELECT distinct update_timestamp FROM app_account_device
WHERE meb_id = 1722911974266699777
AND update_timestamp > 0;
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
updateTimestamp
integer
可选
userId
string
用户id
startTime
string
起始时间
endTime
string
结束时间
pageNo
integer
页码,默认值1
pageSize
integer
每页数量,默认值10
示例
{
"updateTimestamp": 1694763363123,
"userId": "{{accountId}}"
}
示例代码
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/device/getNewerTimestampList/v2' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"updateTimestamp": 1694763363123,
"userId": ""
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}