import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const complaints: AppRouteModule = {
  path: '/authorization',
  name: 'Authorization',
  component: LAYOUT,
  redirect: '/authorization/index',
  meta: {
    hideChildrenInMenu: false,
    orderNo: 10000,
    icon: 'ion:grid-outline',
    title: 'API接口',
  },
  children: [
    {
      path: 'index',
      name: 'authorizationIndex',
      component: () => import('/@/views/authorization/index.vue'),
      meta: {
        title: '接口授权管理',
      },
    },
    {
      path: 'class',
      name: 'authorizationClass',
      component: () => import('/src/views/authorization/className.vue'),
      meta: {
        title: '接口分类管理',
      },
    },
    {
      path: 'interface',
      name: 'authorizationInterface',
      component: () => import('/@/views/authorization/interface.vue'),
      meta: {
        title: '接口管理',
        hideMenu: true,
      },
    },
    {
      path: 'add',
      name: 'authorizationAdd',
      component: () => import('/@/views/authorization/add.vue'),
      meta: {
        title: '新增授权页',
        hideMenu: true,
      },
    },
    {
      path: 'editing',
      name: 'authorizationEditing',
      component: () => import('/@/views/authorization/editing.vue'),
      meta: {
        title: '接口授权编辑页',
        hideMenu: true,
      },
    },
    {
      path: 'detail',
      name: 'authorizationDetail',
      component: () => import('/@/views/authorization/detail.vue'),
      meta: {
        title: '接口授权查看页',
        hideMenu: true,
      },
    },
  ],
};

export default complaints;
