chore: 更新版本号至0.1.1-beta并替换domain为siteId

- 将主项目及各子模块的版本号从0.0.18更新至0.1.1-beta
- 在API文档中将查询参数`domain`统一替换为`siteId`以明确筛选依据
- 为评论统计和点赞统计接口添加`siteId`筛选参数说明
This commit is contained in:
anghunk
2026-02-09 16:19:28 +08:00
parent 77b8402d13
commit 489d30e084
7 changed files with 26 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ GET /admin/analytics/pages
| 名称 | 位置 | 类型 | 必填 | 说明 |
| -------- | ----- | ------ | ---- | ------------------------------------------ |
| `domain` | query | string | 否 | 按域名筛选访问数据,传入域名,如 `example.com` |
| `siteId` | query | string | 否 | 按站点 ID 筛选访问数据,`blog``docs` |
| `order` | query | string | 否 | 排序方式,`pv`(按访问量排序,默认)或 `latest`(最新访问) |
说明:

View File

@@ -25,7 +25,7 @@ GET /admin/comments/list
| 名称 | 位置 | 类型 | 必填 | 说明 |
| -------- | ----- | ------- | ---- | ------------------------------------------ |
| `page` | query | integer | 否 | 页码,默认 `1` |
| `domain` | query | string | 否 | 按域名筛选评论,传入域名,如 `example.com` |
| `siteId` | query | string | 否 | 按站点 ID 筛选评论,如 `blog``docs` |
说明:

View File

@@ -20,6 +20,16 @@ GET /admin/stats/comments
- 路径:`/admin/stats/comments`
- 鉴权需要Bearer Token
**查询参数**
| 名称 | 位置 | 类型 | 必填 | 说明 |
| -------- | ----- | ------ | ---- | ------------------------------- |
| `siteId` | query | string | 否 | 按站点 ID 筛选评论数据,如 `blog``docs` |
说明:
- 当提供 `siteId` 参数且不为 `default` 时,仅返回该站点下的评论统计数据
**成功响应**
- 状态码:`200`
@@ -102,7 +112,16 @@ GET /admin/likes/stats
- 路径:`/admin/likes/stats`
- 鉴权需要Bearer Token
当前实现不接收查询参数,默认返回点赞数最多的前 50 条记录。
**查询参数**
| 名称 | 位置 | 类型 | 必填 | 说明 |
| -------- | ----- | ------ | ---- | ------------------------------- |
| `siteId` | query | string | 否 | 按站点 ID 筛选点赞数据,如 `blog``docs` |
说明:
- 当提供 `siteId` 参数且不为 `default` 时,仅返回该站点下的点赞统计数据
- 默认返回点赞数最多的前 50 条记录
**成功响应**

View File

@@ -1,6 +1,6 @@
{
"name": "cwd-widget",
"version": "0.0.18",
"version": "0.1.1-beta",
"description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.",
"type": "module",
"author": "anghunk",