refactor: 统一实体类命名规范并完善模板执行进度查询功能
- 统一所有实体类添加Entity后缀保持命名一致性 - 重命名User->UserEntity, PlatformUser->PlatformUserEntity等 - 更新所有实体间关联引用和Repository注入 - 新增模板执行进度查询接口GET /templates/execution/:taskId/progress - 新增用户执行任务列表查询接口GET /templates/executions/user/:userId - 完善数据库配置支持环境变量动态配置 - 添加class-validator和class-transformer依赖支持数据验证
This commit is contained in:
17
.env.example
Normal file
17
.env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# 数据库配置
|
||||
DB_HOST=mysql-6bc9094abd49-public.rds.volces.com
|
||||
DB_PORT=53305
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=WsJWXfwFx0bq6DE2kmB6
|
||||
DB_DATABASE=nano_camera_miniapp
|
||||
DB_SYNCHRONIZE=false
|
||||
DB_LOGGING=true
|
||||
DB_MIGRATIONS_RUN=true
|
||||
|
||||
# 应用配置
|
||||
NODE_ENV=development
|
||||
PORT=3000
|
||||
|
||||
# N8N配置
|
||||
N8N_BASE_URL=http://localhost:5678
|
||||
N8N_API_KEY=your_n8n_api_key
|
||||
Reference in New Issue
Block a user