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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'mdi:account-group',
      order: 2000,
      title: '代理管理',
    },
    name: 'Agent',
    path: '/agent',
    children: [
      {
        path: '/agent/list',
        name: 'AgentList',
        meta: {
          icon: 'mdi:account-multiple',
          title: '代理列表',
        },
        component: () => import('#/views/agent/agent-list/list.vue'),
      },
      {
        path: '/agent/links',
        name: 'AgentLinks',
        meta: {
          icon: 'mdi:link-variant',
          title: '推广链接',
        },
        component: () => import('#/views/agent/agent-links/list.vue'),
      },
      {
        path: '/agent/commission',
        name: 'AgentCommission',
        meta: {
          icon: 'mdi:cash-multiple',
          title: '佣金记录',
        },
        component: () => import('#/views/agent/agent-commission/list.vue'),
      },
      {
        path: '/agent/rebate',
        name: 'AgentRebate',
        meta: {
          icon: 'mdi:currency-usd',
          title: '返佣记录',
        },
        component: () => import('#/views/agent/agent-rebate/list.vue'),
      },
      {
        path: '/agent/upgrade',
        name: 'AgentUpgrade',
        meta: {
          icon: 'mdi:arrow-up-circle',
          title: '升级记录',
        },
        component: () => import('#/views/agent/agent-upgrade/list.vue'),
      },
      {
        path: '/agent/order',
        name: 'AgentOrder',
        meta: {
          icon: 'mdi:package-variant',
          title: '订单记录',
        },
        component: () => import('#/views/agent/agent-order/list.vue'),
      },
      {
        path: '/agent/withdrawal',
        name: 'AgentWithdrawal',
        meta: {
          icon: 'mdi:bank-transfer-out',
          title: '提现记录',
        },
        component: () => import('#/views/agent/agent-withdrawal/list.vue'),
      },
      {
        path: '/agent/invite-code',
        name: 'AgentInviteCode',
        meta: {
          icon: 'mdi:ticket-confirmation',
          title: '邀请码管理',
        },
        component: () => import('#/views/agent/agent-invite-code/list.vue'),
      },
      {
        path: '/agent/config',
        name: 'AgentConfig',
        meta: {
          icon: 'mdi:cog',
          title: '系统配置',
        },
        component: () => import('#/views/agent/agent-config/list.vue'),
      },
      {
        path: '/agent/real-name',
        name: 'AgentRealName',
        meta: {
          icon: 'mdi:account-check',
          title: '实名认证',
        },
        component: () => import('#/views/agent/agent-real-name/list.vue'),
      },
      {
        path: '/agent/product-config',
        name: 'AgentProductConfig',
        meta: {
          icon: 'mdi:package-variant-closed',
          title: '产品配置',
        },
        component: () => import('#/views/agent/agent-product-config/list.vue'),
      },
    ],
  },
];

export default routes;

