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
|
|
|
|
# 导入 product
|
|
|
|
|
|
from .product import inbound_product_bp
|
2026-02-05 14:30:11 +08:00
|
|
|
|
# ★ [新增] 导入 summary
|
|
|
|
|
|
from .inbound_summary import bp as inbound_summary_bp
|
2026-01-27 18:10:09 +08:00
|
|
|
|
|
2026-01-27 15:50:23 +08:00
|
|
|
|
inbound_bp = Blueprint('inbound', __name__)
|
|
|
|
|
|
|
|
|
|
|
|
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')
|
|
|
|
|
|
# 挂载 product,前缀改为 /product
|
2026-02-05 14:30:11 +08:00
|
|
|
|
inbound_bp.register_blueprint(inbound_product_bp, url_prefix='/product')
|
|
|
|
|
|
|
|
|
|
|
|
# ★ [新增] 挂载 summary, url 变成 /api/v1/inbound/summary/list
|
|
|
|
|
|
inbound_bp.register_blueprint(inbound_summary_bp, url_prefix='/summary')
|