import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

/**
 * 骆驼加油管理路由模块
 * 包含账号管理、订单管理和Token管理三个子模块
 */
const CamelOilMgt: AppRouteRecordRaw = {
  path: '/camel-oil',
  name: 'camelOilMgt',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '骆驼加油',
    requiresAuth: true,
    icon: 'icon-car',
    order: 5
  },
  children: [
    {
      path: 'token',
      name: 'camelOilToken',
      component: () => import('@/views/camel-oil-info/token/index.vue'),
      meta: {
        locale: 'Token管理',
        requiresAuth: true,
        roles: ['*'],
        activeMenu: '/camel-oil/token'
      }
    }
  ]
};

export default CamelOilMgt;
