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

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ic:baseline-view-in-ar',
      keepAlive: true,
      order: 0,
      title: '机器人管理',
      fixed: true,
    },
    name: 'Robot',
    path: '/robot',
    children: [
      {
        meta: {
          title: $t('robot.group.title'),
          keepAlive: true,
          path: '/robot/robotGroup/index',
          fixed: true,
        },
        name: 'RobotGroup',
        path: '/robot/robotGroup',
        component: () => import('#/views/robot/robotGroup/index.vue'),
      },
      {
        meta: {
          title: $t('robot.account.account'),
          keepAlive: true,
          path: '/robot/robotAccount/index',
          fixed: true,
        },
        name: 'RobotAccount',
        path: '/robot/robotAccount',
        component: () => import('#/views/robot/robotAccount/index.vue'),
      },
      {
        meta: {
          title: $t('robot.fee.totalAmount'),
          keepAlive: true,
          path: '/robot/robotFee/index',
          fixed: true,
        },
        name: 'RobotFee',
        path: '/robot/robotFee',
        component: () => import('#/views/robot/robotFee/index.vue'),
      },

      {
        meta: {
          title: $t('robot.giftConfig.title'),
          keepAlive: true,
          path: '/robot/giftConfig/index',
          fixed: true,
        },
        name: 'GiftConfig',
        path: '/robot/giftConfig',
        component: () => import('#/views/robot/giftConfig/index.vue'),
      },
      {
        meta: {
          title: $t('robot.chatConfig.title'),
          keepAlive: true,
          path: '/robot/chatConfig/index',
          fixed: true,
        },
        name: 'ChatConfig',
        path: '/robot/chatConfig',
        component: () => import('#/views/robot/chatConfig/index.vue'),
      },
      {
        meta: {
          title: $t('robot.runningConfig.title'),
          keepAlive: true,
          path: '/robot/runningConfig/index',
          fixed: true,
        },
        name: 'RunningConfig',
        path: '/robot/runningConfig',
        component: () => import('#/views/robot/runningConfig/index.vue'),
      },
      {
        meta: {
          title: $t('robot.configRelation.title'),
          keepAlive: true,
          path: '/robot/configRelation/index',
          fixed: true,
        },
        name: 'ConfigRelation',
        path: '/robot/configRelation',
        component: () => import('#/views/robot/configRelation/index.vue'),
      },
      {
        meta: {
          title: $t('robot.runningInfo.title'),
          keepAlive: true,
          path: '/robot/robotRunningInfo/index',
          fixed: true,
        },
        name: 'RobotRunningInfo',
        path: '/robot/robotRunningInfo',
        component: () => import('#/views/robot/robotRunningInfo/index.vue'),
      },
      {
        meta: {
          title: $t('robot.runRecord.title'),
          keepAlive: true,
          path: '/robot/robotRunRecord/index',
          fixed: true,
        },
        name: 'RobotRunRecord',
        path: '/robot/robotRunRecord',
        component: () => import('#/views/robot/robotRunRecord/index.vue'),
      },
      {
        meta: {
          title: $t('robot.consumptionRecord.title'),
          keepAlive: true,
          path: '/robot/robotConsumptionRecord/index',
          fixed: true,
        },
        name: 'RobotConsumptionRecord',
        path: '/robot/robotConsumptionRecord',
        component: () => import('#/views/robot/robotConsumptionRecord/index.vue'),
      },
      {
        meta: {
          title: $t('robot.messageTemplate.title'),
          keepAlive: true,
          path: '/robot/messageTemplate/index',
          fixed: true,
        },
        name: 'MessageTemplate',
        path: '/robot/messageTemplate',
        component: () => import('#/views/robot/messageTemplate/index.vue'),
      },
      {
        meta: {
          title: $t('robot.chatInfo.title'),
          keepAlive: true,
          path: '/robot/chatInfo/index',
          fixed: true,
        },
        name: 'ChatInfo',
        path: '/robot/chatInfo',
        component: () => import('#/views/robot/chatInfo/index.vue'),
      },

    ],
  },

];

export default routes;
