39f3774940
统一 sources/templates/channels/rules 列表为分页响应,避免配置增多时全量返回;按钉钉 access_token 限制每分钟发送并在超限时等待下一分钟,降低触发官方封禁风险。 Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
618 B
Makefile
29 lines
618 B
Makefile
.PHONY: build run test test-e2e docker-build docker-up docker-down migrate-up migrate-down
|
|
|
|
build:
|
|
go build -o bin/server ./cmd/server
|
|
|
|
run:
|
|
go run ./cmd/server
|
|
|
|
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 .
|
|
|
|
docker-up:
|
|
docker-compose up -d
|
|
|
|
docker-down:
|
|
docker-compose down
|
|
|
|
migrate-up:
|
|
migrate -path migrations -database "mysql://notify:notify@tcp(127.0.0.1:3306)/notification" up
|
|
|
|
migrate-down:
|
|
migrate -path migrations -database "mysql://notify:notify@tcp(127.0.0.1:3306)/notification" down
|