import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:credit-card',
      order: 50.1,
      title: '支付管理',
    },
    name: 'PaymentManager',
    path: '/payment/manager',
    redirect: '/payment/manager/country',
    children: [
      {
        name: 'PayCountry',
        path: 'country',
        alias: '/operate/manager/pay/country',
        component: () => import('#/views/operate/pay-country.vue'),
        meta: { title: '开通支付国家' },
      },
      {
        name: 'RegionRelation',
        path: 'region/relation',
        alias: '/operate/manager/region/relation',
        component: () => import('#/views/operate/region-relation.vue'),
        meta: { title: '支付区域关系' },
      },
      {
        name: 'PayApplication',
        path: 'application',
        alias: '/operate/manager/pay/application',
        component: () => import('#/views/operate/pay-application.vue'),
        meta: { title: '应用管理' },
      },
      {
        name: 'PayFactory',
        path: 'factory',
        alias: '/operate/manager/pay/factory',
        component: () => import('#/views/operate/pay-factory.vue'),
        meta: { title: '支付厂商' },
      },
      {
        name: 'PayChannel',
        path: 'channel',
        alias: '/operate/manager/pay/channel',
        component: () => import('#/views/operate/pay-channel.vue'),
        meta: { title: '支付渠道' },
      },
    ],
  },
];

export default routes;
