统计模块
类路径:StatisticsController
前缀:/statistics
1. todayOverview
接口路径:GET/POST /statistics/todayOverview
权限:需要管理员或编辑权限
请求参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| token | String | 否 | - |
响应说明:
{
"code": 1,
"msg": "",
"data": ...
}
2. trend
接口路径:GET/POST /statistics/trend
权限:需要管理员或编辑权限
请求参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| token | String | 否 | - | |
| days | Integer | 否 | 7 |
响应说明:
{
"code": 1,
"msg": "",
"data": ...
}
3. initHistory
接口路径:GET/POST /statistics/initHistory
权限:需要超级管理员权限
请求参数:
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| webkey | String | 否 | - | |
| token | String | 否 | - |
响应说明:
{
"code": 1,
"msg": "",
"data": ...
}