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

const CTrip: AppRouteRecordRaw = {
  path: '/cTrip',
  name: 'cTrip',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '携程管理',
    requiresAuth: true,
    icon: 'icon-safe',
    order: 1
  },
  children: [
    {
      path: 'account',
      name: 'cTripAccount',
      component: () => import('@/views/card-c-trip-info/account/index.vue'),
      meta: {
        locale: '账户',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'order',
      name: 'cTripOrder',
      component: () => import('@/views/card-c-trip-info/order/index.vue'),
      meta: {
        locale: '订单',
        requiresAuth: true,
        roles: ['*']
      }
    }
  ]
};

export default CTrip;
