(no commit message provided)
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -106,6 +106,19 @@ def create_app():
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print(f"❌ 错误: Outbound 模块导入失败: {e}")
|
print(f"❌ 错误: Outbound 模块导入失败: {e}")
|
||||||
|
|
||||||
|
# -----------------------------------------------------
|
||||||
|
# 2.6 注册 BOM 模块
|
||||||
|
# -----------------------------------------------------
|
||||||
|
try:
|
||||||
|
from app.api.v1.bom import bom_bp
|
||||||
|
# 标准: /api/v1/bom
|
||||||
|
app.register_blueprint(bom_bp, url_prefix='/api/v1/bom')
|
||||||
|
# 兼容: /api/bom
|
||||||
|
app.register_blueprint(bom_bp, url_prefix='/api/bom', name='bom_legacy')
|
||||||
|
print("✅ BOM 模块注册成功")
|
||||||
|
except ImportError as e:
|
||||||
|
print(f"❌ 错误: BOM 模块导入失败: {e}")
|
||||||
|
|
||||||
# =========================================================
|
# =========================================================
|
||||||
# 3. 预加载数据模型
|
# 3. 预加载数据模型
|
||||||
# =========================================================
|
# =========================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user