import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../shared/shared.module';

const routes: Routes = [
  {path: 'res', loadChildren: () => import('./res/res.frame.module').then(m => m.FrameResModule)},
  {path: 'param', loadChildren: () => import('./param/param.frame.module').then(m => m.FrameParamModule)},
  {path: 'dict', loadChildren: () => import('./dict/dict.frame.module').then(m => m.FrameDictModule)},
  {path: 'dept', loadChildren: () => import('./dept/dept.frame.module').then(m => m.FrameDeptModule)},
  {path: 'role', loadChildren: () => import('./role/role.frame.module').then(m => m.FrameRoleModule)},
  {path: 'optr', loadChildren: () => import('./optr/optr.frame.module').then(m => m.FrameOptrModule)},
  {path: 'module', loadChildren: () => import('./module/module.frame.module').then(m => m.FrameModuleModule)},
  {path: 'report', loadChildren: () => import('./report/report.frame.module').then(m => m.FrameReportModule)},
  {path: 'region', loadChildren: () => import('./region/region.frame.module').then(m => m.FrameRegionModule)},
  {path: 'timer', loadChildren: () => import('./timer/timer.frame.module').then(m => m.FrameTimerModule)},
  {path: 'thread', loadChildren: () => import('./thread/thread.frame.module').then(m => m.FrameThreadModule)},
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  declarations: [],
  exports: [
    RouterModule
  ]
})
export class FrameModule {
}
