2026-01-27 15:50:23 +08:00
|
|
|
from flask import Blueprint
|
|
|
|
|
from .buy import inbound_buy_bp
|
2026-01-28 17:44:39 +08:00
|
|
|
from .semi import inbound_semi_bp
|
2026-01-27 18:10:09 +08:00
|
|
|
from .base import inbound_base_bp
|
2026-01-29 09:27:56 +08:00
|
|
|
from .product import inbound_product_bp
|
2026-02-05 14:30:11 +08:00
|
|
|
from .inbound_summary import bp as inbound_summary_bp
|
2026-01-27 18:10:09 +08:00
|
|
|
|
2026-02-09 11:44:24 +08:00
|
|
|
# ★ [修正] 正确导入 service 模块的蓝图 (假设你在 service.py 里定义的是 bp)
|
|
|
|
|
from .service import bp as inbound_service_bp
|
2026-01-27 15:50:23 +08:00
|
|
|
|
2026-02-09 11:44:24 +08:00
|
|
|
inbound_bp = Blueprint('inbound', __name__)
|
2026-02-09 11:34:09 +08:00
|
|
|
|
2026-02-09 11:44:24 +08:00
|
|
|
# 注册原有模块
|
2026-01-27 15:50:23 +08:00
|
|
|
inbound_bp.register_blueprint(inbound_buy_bp, url_prefix='/buy')
|
2026-01-28 17:44:39 +08:00
|
|
|
inbound_bp.register_blueprint(inbound_semi_bp, url_prefix='/semi')
|
2026-01-29 09:27:56 +08:00
|
|
|
inbound_bp.register_blueprint(inbound_base_bp, url_prefix='/base')
|
2026-02-05 14:30:11 +08:00
|
|
|
inbound_bp.register_blueprint(inbound_product_bp, url_prefix='/product')
|
2026-02-06 10:16:37 +08:00
|
|
|
inbound_bp.register_blueprint(inbound_summary_bp, url_prefix='/summary')
|
2026-02-05 14:30:11 +08:00
|
|
|
|
2026-02-09 11:44:24 +08:00
|
|
|
# ★ [修正] 注册 service 模块,前缀设为 /service
|
|
|
|
|
# 最终访问路径: /api/v1/inbound/service
|
|
|
|
|
inbound_bp.register_blueprint(inbound_service_bp, url_prefix='/service')
|