- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
保存口腔健康档案
POST
https://test.myusmile.online/user/oralArchive/save
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
userId
string
用户id
deviceId
string
设备id,一般为mac地址
applianceType
integer
正畸状态。0无,1固定托槽,2隐藏牙套
divideScheme
integer
区面齿划分方案。按区:11四区,12六区,13十区;按面:21八面,22十二面,23十六面,24二十八面;按齿:31;按齿面:41
createTimestamp
string
档案生成时间戳,毫秒
problemList
array [object {2}]
口腔问题列表
problemType
string
问题类型。1敏感牙,2种植牙,3正畸,4缺牙,5龋齿牙,6结石牙,7色素牙,8牙菌斑
detail
string
问题详情。repeated ProblemTeethInfo 的pb类型转为json数组,转为String
示例
{
"userId": {{accountId}},
"deviceId": "{{U7_device}}",
"applianceType": 0,
"divideScheme": 31,
"createTimestamp": 1723527997179,
"problemList": [
{
"problemType": 8,
"detail": "[{\"settingType\":1,\"teethFacet\":10}]"
},
{
"problemType": 8,
"detail": "[{\"settingType\":1,\"teethFacet\":8},{\"settingType\":1,\"teethFacet\":13},{\"settingType\":1,\"teethFacet\":16}]"
},
{
"problemType": 4,
"detail": "[{\"settingType\":1,\"teethFacet\":27}]"
},
{
"problemType": 1,
"detail": "[{\"settingType\":1,\"teethFacet\":2},{\"settingType\":1,\"teethFacet\":23}]"
},
{
"problemType": 5,
"detail": "[{\"settingType\":1,\"teethFacet\":26}]"
},
{
"problemType": 6,
"detail": "[{\"settingType\":1,\"teethFacet\":6}]"
},
{
"problemType": 7,
"detail": "[{\"settingType\":1,\"teethFacet\":12},{\"settingType\":1,\"teethFacet\":15}]"
}
]
}
示例代码
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/oralArchive/save' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": ,
"deviceId": "",
"applianceType": 0,
"divideScheme": 31,
"createTimestamp": 1723527997179,
"problemList": [
{
"problemType": 8,
"detail": "[{\"settingType\":1,\"teethFacet\":10}]"
},
{
"problemType": 8,
"detail": "[{\"settingType\":1,\"teethFacet\":8},{\"settingType\":1,\"teethFacet\":13},{\"settingType\":1,\"teethFacet\":16}]"
},
{
"problemType": 4,
"detail": "[{\"settingType\":1,\"teethFacet\":27}]"
},
{
"problemType": 1,
"detail": "[{\"settingType\":1,\"teethFacet\":2},{\"settingType\":1,\"teethFacet\":23}]"
},
{
"problemType": 5,
"detail": "[{\"settingType\":1,\"teethFacet\":26}]"
},
{
"problemType": 6,
"detail": "[{\"settingType\":1,\"teethFacet\":6}]"
},
{
"problemType": 7,
"detail": "[{\"settingType\":1,\"teethFacet\":12},{\"settingType\":1,\"teethFacet\":15}]"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}