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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:megaphone',
      order: 50,
      title: '运营管理',
    },
    name: 'OperateManager',
    path: '/operate/manager',
    redirect: '/operate/manager/agentActivity',
    children: [
      {
        name: 'AgentActivity',
        path: 'agentActivity',
        component: () => import('#/views/operate/agent-activity.vue'),
        meta: { title: '代理活动' },
      },
      {
        name: 'CustomerService',
        path: '/customer-service',
        component: () => import('#/views/operate/customer-service.vue'),
        meta: { title: '客服列表' },
      },
      {
        name: 'OperateCp',
        path: 'cp',
        component: () => import('#/views/operate/cp-apply.vue'),
        meta: { title: 'CP申请' },
      },
      {
        name: 'GamePK',
        path: '/game/pk',
        component: () => import('#/views/operate/game-pk.vue'),
        meta: { title: 'PK记录' },
      },
      {
        name: 'OperateActivityConfig',
        path: 'activity/cnf',
        component: () => import('#/views/operate/activity-config.vue'),
        meta: { title: '活动配置' },
      },
      {
        name: 'OperateActivityTemplate',
        path: 'activity/template',
        component: () => import('#/views/operate/activity-template.vue'),
        meta: { title: '活动模版' },
      },
      {
        name: 'GameLudo',
        path: '/game-ludo',
        component: () => import('#/views/operate/ludo-game.vue'),
        meta: { title: 'Ludo飞行棋' },
      },
      {
        name: 'RefundDeductTagLog',
        path: 'refund-deduct-tag-log',
        component: () => import('#/views/operate/refund-deduct-tag-log.vue'),
        meta: { title: '退款扣除目标' },
      },
      {
        name: 'OperateCnfLottery',
        path: 'cnf/lottery',
        component: () => import('#/views/operate/lottery-wheel-config.vue'),
        meta: { title: '抽奖品配置' },
      },
      {
        name: 'OperateAdministrator',
        path: 'administrator',
        component: () => import('#/views/operate/app-administrator.vue'),
        meta: { title: 'APP管理员' },
      },
      {
        name: 'OperateCompensate',
        path: 'compensate',
        component: () => import('#/views/operate/compensate-order.vue'),
        meta: { title: '订单补偿' },
      },
      {
        name: 'OperateToolsOther',
        path: 'tools/other',
        component: () => import('#/views/operate/tools-other.vue'),
        meta: { title: '小工具' },
      },
      {
        name: 'OperateAbnormalLog',
        path: 'abnormal/log',
        component: () => import('#/views/operate/order-abnormal.vue'),
        meta: { title: '异常订单' },
      },
      {
        name: 'OperateOrderDetails',
        path: 'order/details',
        component: () => import('#/views/operate/order-details.vue'),
        meta: { title: '订单详情' },
      },
      {
        name: 'OperateReimburse',
        path: 'reimburse',
        component: () => import('#/views/operate/reimburse-order.vue'),
        meta: { title: '退款记录' },
      },
      {
        name: 'OperateGiftConfig',
        path: 'gift',
        component: () => import('#/views/operate/gift-config.vue'),
        meta: { title: '礼物管理' },
      },
      {
        name: 'OperateGameLotteryConfig',
        path: '/game/lottery-config',
        component: () => import('#/views/operate/game-lottery-config.vue'),
        meta: { title: '抽奖概率配置' },
      },
      {
        name: 'GameRedPacketRecord',
        path: '/game/red/packet/record',
        component: () => import('#/views/operate/game-red-packet-record.vue'),
        meta: { title: '红包发送列表' },
      },
      {
        name: 'LuckyGiftRuleConfig',
        path: '/game/lucky-gift/rule-config/config',
        component: () => import('#/views/operate/lucky-gift-rule-config.vue'),
        meta: { title: '幸运礼物规则配置' },
      },
      {
        name: 'LuckyGiftGiveRecord',
        path: '/game/lucky-gift/give-record',
        component: () => import('#/views/operate/lucky-gift-give-record.vue'),
        meta: { title: '幸运礼物送礼记录' },
      },
      {
        name: 'LuckyGiftStandardConfig',
        path: '/game/lucky-gift/standard-config/config',
        component: () => import('#/views/operate/lucky-gift-standard-config.vue'),
        meta: { title: '幸运礼物规格配置' },
      },
      {
        name: 'GameLuckyBox',
        path: '/game/lucky-box',
        component: () => import('#/views/operate/lucky-box.vue'),
        meta: { title: 'LuckyBox抽奖记录' },
      },
      {
        name: 'GameFruitDaysLog',
        path: '/game/fruit/log/fruit-days-log',
        component: () => import('#/views/operate/fruit-days-log.vue'),
        meta: { title: '摩天轮游戏每日数据' },
      },
      {
        name: 'OperateFruitTaskConfig',
        path: 'game/fruit/task-config',
        component: () => import('#/views/operate/fruit-task-config.vue'),
        meta: { title: '摩天轮任务配置' },
      },
      {
        name: 'GameTeenPatti',
        path: '/game/teen-patti',
        component: () => import('#/views/operate/teen-patti.vue'),
        meta: { title: '炸金花' },
      },
      {
        name: 'OperateSysCountry',
        path: 'sys/country',
        component: () => import('#/views/operate/system-country.vue'),
        meta: { title: '国家管理' },
      },
      {
        name: 'OperateSysBanner',
        path: 'sys/banner',
        component: () => import('#/views/operate/system-banner.vue'),
        meta: { title: '系统banner管理' },
      },
      {
        name: 'OperateStartPage',
        path: 'sys/start/page',
        component: () => import('#/views/operate/start-page-config.vue'),
        meta: { title: 'App启动页' },
      },
      {
        name: 'OperateNoticeMessage',
        path: 'notice/message',
        component: () => import('#/views/operate/notice-message.vue'),
        meta: { title: '系统公告管理' },
      },
      {
        name: 'OperateMikeType',
        path: 'mike/type',
        component: () => import('#/views/operate/mike-type-config.vue'),
        meta: { title: '麦位类型管理' },
      },
      {
        name: 'OperateMikeTypeList',
        path: 'mike/type/list',
        component: () => import('#/views/operate/mike-type-list.vue'),
        meta: { title: '购买麦位类型流水' },
      },
      {
        name: 'GameTrumpet',
        path: '/game/trumpet',
        component: () => import('#/views/operate/trumpet-list.vue'),
        meta: { title: '喇叭列表' },
      },
      {
        name: 'OperateGameEgg',
        path: '/game/egg',
        component: () => import('#/views/operate/game-egg.vue'),
        meta: { title: '砸金蛋' },
      },
      {
        name: 'ActivityHallFame',
        path: '/activity/hall-fame',
        component: () => import('#/views/operate/hall-fame.vue'),
        meta: { title: '自定义名人堂' },
      },
    ],
  },
];

export default routes;
