import { OpenAPIHono } from '@hono/zod-openapi';
import { EnterpriseAuthContext } from '@d8d/shared-types';
import companyStatisticsRoutes from './company-statistics.route';
import companyRecentAllocationsRoutes from './company-recent-allocations.route';

// 创建企业路由聚合
const app = new OpenAPIHono<EnterpriseAuthContext>()
    // 挂载统计路由
    .route('/', companyStatisticsRoutes)

    // 挂载近期分配人才查询路由
    .route('/', companyRecentAllocationsRoutes);

export default app;