import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import orderCustomRoutes, { enterpriseOrderCustomRoutes } from './order-custom.routes';
import { orderCrudRoutes } from './order-crud.routes';
import talentEmploymentRoutes from './talent-employment.routes';

/**
 * 通用订单管理路由
 * 包含通用CRUD路由和通用自定义路由
 */
const orderRoutes = new OpenAPIHono<AuthContext>()
  .route('/', orderCustomRoutes)
  .route('/', orderCrudRoutes);

/**
 * 企业专用订单路由
 * 仅包含企业专用自定义路由
 */
const enterpriseOrderRoutes = new OpenAPIHono<AuthContext>()
  .route('/', enterpriseOrderCustomRoutes);

/**
 * 人才就业信息路由
 * 故事015.005 - 人才小程序就业信息API
 */
export { talentEmploymentRoutes };
export { default as talentEmploymentRoutesDefault } from './talent-employment.routes';

export { orderRoutes, enterpriseOrderRoutes };
export default orderRoutes;