51521fc0dd
- 微信支付从 APIv3 降级为 APIv2(MD5/XML) - 积分系统:充值下单、微信回调、消费冻结/结算/退款 - SMS B2M 短信验证码服务 - 双 Token 认证(Access 30min + Refresh 30days) - SSE 单设备踢人 - 用户设备管理、积分账户模型 - Alembic 迁移脚本
56 lines
1.3 KiB
Python
56 lines
1.3 KiB
Python
"""
|
|
API v1 路由聚合
|
|
==============
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import (
|
|
auth,
|
|
caption,
|
|
events,
|
|
materials,
|
|
points,
|
|
script,
|
|
system,
|
|
tasks,
|
|
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(points.router, tags=["Points"])
|