import { NgModule} from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '../../shared/shared.module';
import { OptrComponent } from './optr/optr.component';
import { RoleComponent } from './role/role.component';
import { ParamComponent } from './param/param.component';
import { DictComponent } from './dict/dict.component';
import { ResComponent } from './res/res.component';
import { OptrtreeComponent } from './optrtree/optrtree.component';
import { OptrPasswordComponent } from './optr-password/optr-password.component';

const routes: Routes = [
  { path: 'optr', component: OptrComponent },
  { path: 'role', component: RoleComponent },
  { path: 'dict', component: DictComponent },
  { path: 'param', component: ParamComponent },
  { path: 'res', component: ResComponent },
  { path: 'optrtree', component: OptrtreeComponent },
  { path: 'optrPassword', component: OptrPasswordComponent },
];

@NgModule({
    imports: [
        SharedModule,
        RouterModule.forChild(routes)
    ],
    declarations: [OptrComponent, RoleComponent, ParamComponent, DictComponent, ResComponent, OptrtreeComponent, OptrPasswordComponent],
    exports: [
        RouterModule
    ]
})
export class FrameModule { }
