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 -1
View File
@@ -1,4 +1,4 @@
.PHONY: build run test docker-build docker-up docker-down migrate-up migrate-down
.PHONY: build run test test-e2e docker-build docker-up docker-down migrate-up migrate-down
build:
go build -o bin/server ./cmd/server
@@ -9,6 +9,9 @@ run:
test:
go test ./internal/... -v -count=1
test-e2e:
go test -tags e2e ./test/e2e/ -v -count=1 -timeout 2m
docker-build:
docker build -t notification-service .