- 小柔享睡
- 用户模块
- 设备模块
- 协议管理
- 版本管理
- 音乐管理
- 睡眠模块
- 阿里云
- 首页
- 意见反馈2.0
- 冥想模块
- gpt
- 配置管理
- 开放平台
睡眠趋势对比(2.0)
开发中
GET
/api/rlSleepReport/getSleepReportDataStatistics/{dateType}
请求参数
Path 参数
dateType
string
必需
示例值:
YEAR
Header 参数
token
string
可选
示例值:
4436cde7d9584953bf7ca3c7dd8d7281
channel
string
可选
默认值:
HOSPITAL_SAAS
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/rlSleepReport/getSleepReportDataStatistics/YEAR' \
--header 'token: 6e6f3a96328f454eb489906b71b5fb23' \
--header 'channel: HOSPITAL_SAAS'
返回响应
🟢200成功
application/json
Body
dateType
string
时间类型
durationList
array [object {2}]
睡眠时长集合
label
string
标签
value
integer
数据
sleepQualityList
array [object {2}]
睡眠得分(质量)指数集合
label
string
必需
value
integer | null
必需
brainAgeList
array [object {2}]
睡眠脑龄指数集合
label
string
必需
value
integer
必需
sleepNeedFixIndexList
array [object {2}]
睡眠需求改善指数
label
string
必需
value
integer
必需
memoryConsolidateIndexList
array [object {2}]
睡眠需求巩固指数集合
label
string
必需
value
integer
必需
sleepStableIndexList
array [object {2}]
睡眠安稳指数
label
string
必需
value
integer
必需
brainRecoverIndexList
array [object {2}]
大脑修复指数
label
string
必需
value
integer
必需
示例
{
"dateType": "string",
"durationList": [
{
"label": "string",
"value": 0
}
],
"sleepQualityList": [
{
"label": "string",
"value": 0
}
],
"brainAgeList": [
{
"label": "string",
"value": 0
}
],
"sleepNeedFixIndexList": [
{
"label": "string",
"value": 0
}
],
"memoryConsolidateIndexList": [
{
"label": "string",
"value": 0
}
],
"sleepStableIndexList": [
{
"label": "string",
"value": 0
}
],
"brainRecoverIndexList": [
{
"label": "string",
"value": 0
}
]
}