import { resultSuccess } from '../_util';

const list = [
  {
    path: 'system-config',
    name: 'system-config',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'ApartmentOutlined',
      title: '系统设置',
      noCache: false,
      hidden: false,
      query: '',
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'scene-manage',
        name: 'scene-manage',
        component: '/system-config/scene-manage/SceneManage',
        redirect: null,
        meta: {
          icon: '',
          title: '场景管理',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'template',
        name: 'system-config/template',
        component: '/system-config/template/TemplateManager',
        redirect: null,
        meta: {
          icon: '',
          title: '模板管理',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'scene-layout',
        name: 'scene-layout',
        component: '/system-config/scene-layout/SceneLayout',
        redirect: null,
        meta: {
          icon: '',
          title: '场景布局',
          noCache: false,
          hidden: true,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
    ],
  },
  {
    path: '/page-config',
    name: 'page-config',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'ApartmentOutlined',
      title: '主页配置',
      noCache: false,
      hidden: false,
      query: '',
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'layout',
        name: 'page-layout',
        component: '/page-config/PageConfig',
        redirect: null,
        meta: {
          icon: '',
          title: '主页布局',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'config',
        name: 'layout-config',
        component: '/page-config/ConfigEdit',
        redirect: null,
        meta: {
          icon: '',
          title: '主页配置',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
    ],
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    component: 'LAYOUT',
    redirect: '/dashboard/console',
    meta: {
      icon: 'DashboardOutlined',
      title: 'Dashboard',
      noCache: false,
      hidden: false,
      query: null,
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'console',
        name: 'dashboard_console',
        component: '/dashboard/console/console',
        redirect: null,
        meta: {
          icon: null,
          title: '主控台',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
    ],
  },
  {
    path: '/map-config',
    name: 'map-config',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'PictureOutlined',
      title: '地图配置',
      noCache: false,
      hidden: false,
      query: '',
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'layout',
        name: 'map-layout',
        component: '/map-config/mini-map/MiniMapConfig',
        redirect: null,
        meta: {
          icon: '',
          title: '地图布局',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'template',
        name: 'template',
        component: '/system-config/template/TemplateManager',
        meta: {
          title: '模板管理',
          noCache: false,
          hidden: false,
          isFrame: '1',
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
      },
    ],
  },
  {
    path: '/cameras',
    name: 'cameras',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'CameraOutlined',
      title: '相机管理',
      noCache: false,
      hidden: false,
      query: '',
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'overview',
        name: 'camera_overview',
        component: '/cameras/overview/CamerasOverview',
        redirect: null,
        meta: {
          icon: '',
          title: '相机配置',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'preview',
        name: 'cameras/preview',
        component: '/cameras/preview/CameraPreview',
        redirect: null,
        meta: {
          icon: '',
          title: '相机预览',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'algo-manager',
        name: 'algo-manager',
        component: '/cameras/algo-management/algoManagement',
        redirect: null,
        meta: {
          icon: '',
          title: '算法管理',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
    ],
  },
  {
    path: '/auth',
    name: 'auth',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'SafetyOutlined',
      title: '权限管理',
      noCache: false,
      hidden: false,
      query: '',
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'user',
        name: 'system_user',
        component: '/system/user/user',
        redirect: '',
        meta: {
          icon: null,
          title: '用户管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'role',
        name: 'system_role',
        component: '/system/role/role',
        redirect: null,
        meta: {
          icon: null,
          title: '角色管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'dept',
        name: 'dept',
        component: '/auth/dept/dept',
        redirect: null,
        meta: {
          icon: null,
          title: '组织管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: true,
        },
        children: null,
      },
    ],
  },
  {
    path: '/system',
    name: 'system',
    component: 'LAYOUT',
    redirect: '/system/menu',
    meta: {
      icon: 'OptionsSharp',
      title: '系统管理',
      noCache: false,
      hidden: false,
      query: null,
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'tenant',
        name: 'system_tenant',
        component: '/system/tenant/tenant',
        redirect: null,
        meta: {
          icon: '',
          title: '租户管理',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'menu',
        name: 'system_menu',
        component: '/system/menu/menu',
        redirect: '',
        meta: {
          icon: null,
          title: '菜单管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'logs',
        name: 'system_logs',
        component: 'ParentLayout',
        redirect: null,
        meta: {
          icon: null,
          title: '日志管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'dictionary',
        name: 'system_dictionary',
        component: '/system/dictionary/dictionary',
        redirect: null,
        meta: {
          icon: null,
          title: '字典管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
      {
        path: 'region',
        name: 'system_region',
        component: 'ParentLayout',
        redirect: '',
        meta: {
          icon: null,
          title: '区域管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: true,
        },
        children: null,
      },
      {
        path: 'config',
        name: 'system_config',
        component: 'ParentLayout',
        redirect: null,
        meta: {
          icon: null,
          title: '配置管理',
          noCache: false,
          hidden: false,
          query: null,
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: true,
        },
        children: null,
      },
    ],
  },
  {
    path: '/instation',
    name: 'instation',
    component: 'LAYOUT',
    redirect: null,
    meta: {
      icon: 'BellOutlined',
      title: '站内通知',
      noCache: false,
      hidden: false,
      query: null,
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: [
      {
        path: 'notice',
        name: 'instation_notice',
        component: '/instation/notice/notice',
        redirect: null,
        meta: {
          icon: '',
          title: '通知管理',
          noCache: false,
          hidden: false,
          query: '',
          isFrame: '1',
          frameSrc: null,
          status: '0',
          isRoot: false,
          alwaysShow: false,
        },
        children: null,
      },
    ],
  },
  {
    path: '/article',
    name: 'System_Article',
    component: 'LAYOUT',
    redirect: '/article/list',
    meta: {
      icon: 'BookOutlined',
      title: '文章管理',
      noCache: false,
      hidden: false,
      query: null,
      isFrame: '1',
      frameSrc: null,
      status: '0',
      isRoot: false,
      alwaysShow: false,
    },
    children: null,
  },
];

export default [
  {
    url: '/api/login/getRouters',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(list);
    },
  },
];
