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

const Walmart: AppRouteRecordRaw = {
  path: '/walmart',
  name: 'walamrtMgt',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '沃尔玛管理',
    requiresAuth: true,
    icon: 'icon-safe',
    order: 1
  },
  children: [
    {
      path: 'group',
      name: 'walmartGroup',
      component: () => import('@/views/card-walmart-info/group/index.vue'),
      meta: {
        locale: '沃尔玛分组',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'account',
      name: 'walmartAccount',
      component: () => import('@/views/card-walmart-info/account/index.vue'),
      meta: {
        locale: '沃尔玛账户',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'order',
      name: 'walmartOrder',
      component: () => import('@/views/card-walmart-info/order/index.vue'),
      meta: {
        locale: '沃尔玛订单',
        requiresAuth: true,
        roles: ['*']
      }
    }
    // {
    //   path: 'orderSummary',
    //   name: 'jdOrderSummary',
    //   component: () => import('@/views/card-jd-info/order-summary/index.vue'),
    //   meta: {
    //     locale: '订单记录',
    //     requiresAuth: true,
    //     roles: ['*']
    //   }
    // }
  ]
};

export default Walmart;
