基础信息读取错误,未修改完成

This commit is contained in:
dxc
2026-01-27 18:10:09 +08:00
parent 7a78975ce7
commit 9a04f65eb7

View File

@ -1,14 +1,18 @@
from flask import Blueprint
from .buy import inbound_buy_bp
# 后续如果有 semi.py 或 product.py在这里导入
# from .semi import inbound_semi_bp
# 创建聚合蓝图
# 1. 导入同目录下的 buy 模块 (假设文件名为 buy.py)
from .buy import inbound_buy_bp
# 2. 【关键修改】导入同目录下的 base 模块
# 使用相对导入 .base这样 Python 就会去 app/api/v1/inbound/base.py 找
from .base import inbound_base_bp
# 创建父级蓝图 'inbound'
inbound_bp = Blueprint('inbound', __name__)
# 挂载子模块。url_prefix 会进行路径拼接
# 路径变为:/buy/...
# 3. 挂载子蓝图
# 最终路由将是: /api/v1/inbound/buy/...
inbound_bp.register_blueprint(inbound_buy_bp, url_prefix='/buy')
# 后续扩展:
# inbound_bp.register_blueprint(inbound_semi_bp, url_prefix='/semi')
# 最终路由将是: /api/v1/inbound/base/...
inbound_bp.register_blueprint(inbound_base_bp, url_prefix='/base')