feat: 扩展后端认证和法律文档功能

- 优化auth.py认证路由
- 新增legal.py法律文档路由
- 更新main.py注册新路由
- 新增数据库迁移文件add_device_info_column.sql
This commit is contained in:
iammm0
2026-01-27 14:30:24 +08:00
parent 0925c6f15a
commit 8e98456dae
4 changed files with 374 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ else:
from database import init_db
from routers import (
websocket, chapters, books, conversations, auth, memoir_state, tasks,
user, plans, orders, faqs, quota, feedback
user, plans, orders, faqs, quota, feedback, legal
)
# 初始化数据库
@@ -144,6 +144,7 @@ app.include_router(orders.router) # 订单路由
app.include_router(faqs.router) # 常见问题路由
app.include_router(quota.router) # 配额检查路由
app.include_router(feedback.router) # 反馈路由
app.include_router(legal.router) # 法律文档路由(用户协议、隐私政策)
@app.get("/")