"""
API V1模块初始化
"""
from fastapi import APIRouter
from app.api.v1 import (
    auth, device_types, organizations, assets, brands_suppliers,
    allocations, maintenance, files, transfers, recoveries,
    statistics, system_config, operation_logs, notifications,
    users, roles, permissions
)

api_router = APIRouter()

# 注册路由模块
api_router.include_router(auth.router, prefix="/auth", tags=["认证"])
api_router.include_router(device_types.router, prefix="/device-types", tags=["设备类型管理"])
api_router.include_router(organizations.router, prefix="/organizations", tags=["机构网点管理"])
api_router.include_router(assets.router, prefix="/assets", tags=["资产管理"])
api_router.include_router(brands_suppliers.router, prefix="/brands-suppliers", tags=["品牌和供应商管理"])
api_router.include_router(allocations.router, prefix="/allocation-orders", tags=["资产分配管理"])
api_router.include_router(maintenance.router, prefix="/maintenance-records", tags=["维修管理"])
api_router.include_router(files.router, prefix="/files", tags=["文件管理"])
api_router.include_router(transfers.router, prefix="/transfers", tags=["资产调拨管理"])
api_router.include_router(recoveries.router, prefix="/recoveries", tags=["资产回收管理"])
api_router.include_router(statistics.router, prefix="/statistics", tags=["统计分析"])
api_router.include_router(system_config.router, prefix="/system-config", tags=["系统配置管理"])
api_router.include_router(operation_logs.router, prefix="/operation-logs", tags=["操作日志管理"])
api_router.include_router(notifications.router, prefix="/notifications", tags=["消息通知管理"])
api_router.include_router(users.router, prefix="/users", tags=["用户管理"])
api_router.include_router(roles.router, prefix="/roles", tags=["角色管理"])
api_router.include_router(permissions.router, prefix="/permissions", tags=["权限管理"])

__all__ = ["api_router"]
