f01f2c366a
后端: - 新增 POST /upload/image 图片上传(七牛云 image bucket) - 新增 POST /image/remove-background AI 抠图(火山引擎 MediaKit) - 提取 file_validation.py 共享模块 Rust: - 新增 cover_avatar.rs 存储层(cover_avatars.json + 图片本地存储) - 新增 4 个 IPC 命令:load/save/delete/save_image 前端: - 新增 CoverAvatarLibrary 页面(内容管理 → 封面形象) - 新增 coverAvatar API 模块和 coverAvatarStore - 封面设计集成:背景图/封面形象弹窗选择 + Fabric.js 叠加 - 优化左侧布局:视觉素材横向卡片(9:16)+ 文案配置分组
68 lines
1.6 KiB
Python
68 lines
1.6 KiB
Python
"""
|
|
API v1 路由聚合
|
|
==============
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import (
|
|
auth,
|
|
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(update.router, prefix="/update", tags=["Update"])
|