Files
shanxia2.0/backend/app/api/bx/__init__.py
T
2026-06-07 00:40:01 +08:00

20 lines
777 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。"""
from fastapi import APIRouter
from app.api.bx import advance, attachment, expense_item, payment, reimburse, workflow
from app.schemas.bx.common import ApiResponse
bx_router = APIRouter(tags=["报销管理"])
bx_router.include_router(expense_item.router)
bx_router.include_router(workflow.router)
bx_router.include_router(advance.router)
bx_router.include_router(attachment.router)
bx_router.include_router(reimburse.router)
bx_router.include_router(payment.router)
@bx_router.get("/bx/health", response_model=ApiResponse[dict])
def bx_health():
"""P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。"""
return ApiResponse(data={"status": "ok", "module": "bx"})