Files
meijiaka-zy/python-api/app/api/v1/router.py
T
小鱼开发 06ec0ee202 feat: BGM 云端化 + 步骤页面 UI 统一重构
后端:
- 新增 BGM 数据库模型、Schema、CRUD、API 路由
- BgmMusic 增加 url 字段存储七牛云地址
- Alembic 迁移: 创建 BGM 表 + 添加 url 字段
- import_bgm.py 导入时自动上传七牛云 (meijiaka-zy/bgm/...)

前端:
- VideoCompose BGM 选择改为卡片弹窗 (系统BGM + 本地上传)
- 去掉 BGM 硬编码本地路径, 直接使用云端 URL
- CoverDesign 视觉重构: 绿色边框卡片、角标、hover 遮罩
- CoverDesign 去掉预选背景, 默认空白需手动选择
- 所有步骤按钮规范统一: 左=重新生成(主色), 右=导出/预览(次色)
- 预览按钮状态统一: 文字变为'视频预览中...', 保持 btn-secondary
- 去掉所有步骤按钮的 svg/emoji 图标

Rust:
- mix_bgm_to_video 支持临时文件保护 (输入输出同路径时自动中转)
- FFmpeg BGM 混合使用 aloop 循环 + amix 滤镜
2026-05-24 15:39:54 +08:00

72 lines
1.7 KiB
Python

"""
API v1 路由聚合
==============
"""
from fastapi import APIRouter
from app.api.v1 import (
auth,
bgm_music,
caption,
cover_background,
events,
image,
materials,
points,
script,
system,
tasks,
update,
upload,
vidu,
voice,
)
api_router = APIRouter()
# 认证模块
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
# SSE 事件推送模块
api_router.include_router(events.router, prefix="/events", tags=["Events"])
# 系统模块
api_router.include_router(system.router, prefix="/system", tags=["System"])
# 任务管理模块
api_router.include_router(tasks.router, prefix="/tasks", tags=["Tasks"])
# 脚本模块(生成 / 润色)
api_router.include_router(script.router, prefix="/script", tags=["Script"])
# 字幕生成模块(火山引擎-豆包语音)
api_router.include_router(caption.router, tags=["Caption"])
# 语音合成模块(TTS + 声音复刻)
api_router.include_router(voice.router, tags=["Voice"])
# 文件上传模块
api_router.include_router(upload.router, tags=["Upload"])
# Vidu 视频生成模块
api_router.include_router(vidu.router, tags=["Vidu"])
# 空镜素材模块
api_router.include_router(materials.router, prefix="/materials", tags=["Materials"])
# 封面背景图模块
api_router.include_router(cover_background.router, tags=["Cover Background"])
# 积分系统模块
api_router.include_router(points.router, tags=["Points"])
# 图片处理模块(上传 + 抠图)
api_router.include_router(image.router, tags=["Image"])
# 背景音乐模块
api_router.include_router(bgm_music.router, tags=["BGM Music"])
# 应用更新模块
api_router.include_router(update.router, prefix="/update", tags=["Update"])