21 lines
827 B
Python
21 lines
827 B
Python
"""报销(bx)API 路由聚合 — REST 风格,协议对齐 bx 原系统。"""
|
||
from fastapi import APIRouter
|
||
|
||
from app.api.bx import advance, attachment, expense_item, invoice, 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.include_router(invoice.router)
|
||
|
||
|
||
@bx_router.get("/bx/health", response_model=ApiResponse[dict])
|
||
def bx_health():
|
||
"""P0 健康检查:验证 bx 路由已挂载且响应协议为 code=0。"""
|
||
return ApiResponse(data={"status": "ok", "module": "bx"})
|