import { OpenAPIHono } from '@hono/zod-openapi';
import createPaymentRoute from './payment/create.js';
import paymentCallbackRoute from './payment/callback.js';
import paymentStatusRoute from './payment/status.js';

// 支付模块主路由
export const PaymentRoutes = new OpenAPIHono()
  .route('/payment', createPaymentRoute)
  .route('/payment/callback', paymentCallbackRoute)
  .route('/payment/status', paymentStatusRoute);

// 导出路由配置，用于集成到主应用
export const paymentRoutesExport = {
  '/api/v1': PaymentRoutes
};