refactor(server): 移除鉴权并归档遗留路由至 legacy/
- 删除 auth.py 与 deps.py,各路由去除 get_current_user 依赖 - collection.py 更名为 materials.py,冻结链路(ozon/publish/shops/categories)移入 legacy/ - 扩展默认生图服务端口并入 8800 并自动迁移旧配置,水印默认文案改为 Panda Store - 新增 docs/v2.1/backend-structure.md 后端结构盘点文档
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
"""模型统一导出(供 Alembic autogenerate 与业务代码 import)。"""
|
||||
"""模型统一导出(供 Alembic autogenerate 与业务代码 import)。
|
||||
|
||||
冻结链路的模型已移至 legacy/models(shops/categories/publish 相关),
|
||||
由 legacy.api 路由 import 链注册到同一 Base.metadata。
|
||||
"""
|
||||
from models.asset import ProductAsset
|
||||
from models.category import AttributeValue, CategoryAttribute, CategoryTree
|
||||
from models.product import Product
|
||||
from models.publish_task import PublishTask
|
||||
from models.shop import Shop
|
||||
from models.user import User
|
||||
|
||||
__all__ = [
|
||||
"User",
|
||||
"Shop",
|
||||
"Product",
|
||||
"ProductAsset",
|
||||
"PublishTask",
|
||||
"CategoryTree",
|
||||
"CategoryAttribute",
|
||||
"AttributeValue",
|
||||
]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""用户表(预留多用户;MVP 用 APP_TOKEN 时为空)。"""
|
||||
"""用户表(预留多用户;V2.1 已移除鉴权,后续加账户体系时启用)。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
|
||||
Reference in New Issue
Block a user