初始项目

This commit is contained in:
mark.tian
2025-12-02 17:25:37 +08:00
parent 46f24dbe6c
commit 4cf817eadf
10 changed files with 696 additions and 0 deletions

17
.env.example Normal file
View File

@@ -0,0 +1,17 @@
# 数据库配置
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/ai_talk_callback_db
# Redis配置
REDIS_URL=redis://localhost:6379/0
REDIS_LOCK_TIMEOUT=30
REDIS_LOCK_RETRY_DELAY=0.1
REDIS_LOCK_MAX_RETRIES=100
# 业务配置
COUNT_THRESHOLD=3
EXTERNAL_API_RETRY_MAX=4
EXTERNAL_API_URL=https://external.com/api/openapi/customerApi/aiTaskResultFail
# 应用配置
APP_NAME=AI Talk Callback API
DEBUG=false