feat: 配置列表分页与钉钉机器人分钟级排队限流

统一 sources/templates/channels/rules 列表为分页响应,避免配置增多时全量返回;按钉钉 access_token 限制每分钟发送并在超限时等待下一分钟,降低触发官方封禁风险。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-10 00:34:26 +08:00
parent 009694fee7
commit 39f3774940
27 changed files with 1447 additions and 60 deletions
+4 -4
View File
@@ -111,7 +111,7 @@ curl -X POST 'http://localhost:8080/api/v1/sources' \
### 列出 Source
```bash
curl -X GET 'http://localhost:8080/api/v1/sources' \
curl -X GET 'http://localhost:8080/api/v1/sources?page=1&page_size=20' \
-H 'Authorization: Bearer admin-sk-change-me'
```
@@ -161,7 +161,7 @@ curl -X POST 'http://localhost:8080/api/v1/templates' \
### 列出 Template
```bash
curl -X GET 'http://localhost:8080/api/v1/templates' \
curl -X GET 'http://localhost:8080/api/v1/templates?page=1&page_size=20' \
-H 'Authorization: Bearer admin-sk-change-me'
```
@@ -263,7 +263,7 @@ curl -X POST 'http://localhost:8080/api/v1/channels' \
### 列出 Channel
```bash
curl -X GET 'http://localhost:8080/api/v1/channels' \
curl -X GET 'http://localhost:8080/api/v1/channels?page=1&page_size=20' \
-H 'Authorization: Bearer admin-sk-change-me'
```
@@ -323,7 +323,7 @@ curl -X POST 'http://localhost:8080/api/v1/rules' \
### 列出 Rule
```bash
curl -X GET 'http://localhost:8080/api/v1/rules' \
curl -X GET 'http://localhost:8080/api/v1/rules?page=1&page_size=20' \
-H 'Authorization: Bearer admin-sk-change-me'
```