import { AppRouteRecord } from '@/types/router'

export const gatewayRoutes: AppRouteRecord = {
  name: 'Gateway',
  path: '/gateway',
  component: '/index/index',
  meta: {
    title: '网关管理',
    icon: 'ri:router-line',
    roles: ['R_SUPER']
  },
  children: [
    {
      path: 'providers',
      name: 'Providers',
      component: '/gateway/providers',
      meta: {
        title: '模型供应商',
        keepAlive: true,
        roles: ['R_SUPER']
      }
    },
    {
      path: 'api-keys',
      name: 'APIKeys',
      component: '/gateway/api-keys',
      meta: {
        title: 'API Key',
        keepAlive: true,
        roles: ['R_SUPER']
      }
    },
    {
      path: 'model-routes',
      name: 'ModelRoutes',
      component: '/gateway/model-routes',
      meta: {
        title: '模型路由',
        keepAlive: true,
        roles: ['R_SUPER']
      }
    },
    {
      path: 'audit-usage',
      name: 'AuditUsage',
      component: '/gateway/audit-usage',
      meta: {
        title: '审计与用量',
        keepAlive: true,
        roles: ['R_SUPER']
      }
    },
    {
      path: 'outbox',
      name: 'Outbox',
      component: '/gateway/outbox',
      meta: {
        title: '事件投递',
        keepAlive: true,
        roles: ['R_SUPER']
      }
    }
  ]
}
