import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';
import {SkStdComponent} from './sk-std.component';
import {StdMaterialRefuseComponent} from './material/std-material-refuse/std-material-refuse.component';
import {StdRegModifyComponent} from './reg/std-reg-modify/std-reg-modify.component';


const routes: Routes = [
  {
    path: '', component: SkStdComponent, children: [
      {path: 'reg', loadChildren: './reg/reg.std.module#StdRegModule'},
      {path: 'enrol', loadChildren: './enrol/enrol.std.module#StdEnrolModule'},
      {path: 'material', loadChildren: './material/material.std.module#StdMaterialModule'},
      {path: 'admission', loadChildren: './admission/admission.std.module#StdAdmissionModule'},
      {path: 'schoolAdmission', loadChildren: './schoolAdmission/schoolAdmission.std.module#StdSchoolAdmissionModule'},
      {path: 'batch', loadChildren: './batch/batch.std.module#StdBatchModule'},
      {path: 'major', loadChildren: './major/major.std.module#StdMajorModule'},
      {path: 'sex', loadChildren: './sex/sex.std.module#StdSexModule'},
      {path: 'quality', loadChildren: './quality/quality.std.module#StdQualityModule'},
      {path: 'batchQuality', loadChildren: './batchQuality/batchQuality.std.module#StdBatchQualityModule'},
      {path: 'segment', loadChildren: './segment/segment.std.module#StdSegmentModule'},
      {path: 'recruit', loadChildren: './recruit/recruit.std.module#StdRecruitModule'},
      {path: 'three', loadChildren: './three/three.std.module#StdThreeModule'}

    ]
  }
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  entryComponents: [StdMaterialRefuseComponent,StdRegModifyComponent],
  declarations: [SkStdComponent,StdMaterialRefuseComponent,StdRegModifyComponent],
  exports: [
    RouterModule
  ]
})

export class SkStdModule {
}
