feat: 新增告警、成本、配额、微信模块及缓存服务
All checks were successful
continuous-integration/drone/push Build is passing

- 新增告警模块 (alerts): 告警规则配置与触发
- 新增成本管理模块 (cost): 成本统计与分析
- 新增配额模块 (quota): 配额管理与限制
- 新增微信模块 (wechat): 微信相关功能接口
- 新增缓存服务 (cache): Redis 缓存封装
- 新增请求日志中间件 (request_logger)
- 新增异常处理和链路追踪中间件
- 更新 dashboard 前端展示
- 更新 SDK stats_client 功能
This commit is contained in:
111
2026-01-24 16:53:47 +08:00
parent eab2533c36
commit 6c6c48cf71
29 changed files with 4607 additions and 41 deletions

26
backend/env.template Normal file
View File

@@ -0,0 +1,26 @@
# 000-platform 环境配置模板
# 复制此文件为 .env 并填写实际值
# ==================== 应用配置 ====================
APP_NAME=platform
APP_VERSION=1.0.0
DEBUG=false
# ==================== 数据库配置 ====================
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=your-password
DB_NAME=new_qiqi
# ==================== JWT 配置 ====================
JWT_SECRET_KEY=your-secret-key-change-in-production
JWT_ALGORITHM=HS256
JWT_EXPIRE_MINUTES=1440
# ==================== 安全配置 ====================
# 用于加密敏感数据(如企微 Secret
ENCRYPTION_KEY=your-encryption-key-32-bytes
# ==================== 可选Redis 缓存 ====================
# REDIS_URL=redis://localhost:6379/0