import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {SharedModule} from '../../../../shared/shared.module';
import { LayoutMaterialWrittenComponent } from './layout-material-written/layout-material-written.component';
import { LayoutMaterialInterviewComponent } from './layout-material-interview/layout-material-interview.component';
import { LayoutMaterialAppointmentComponent } from './layout-material-appointment/layout-material-appointment.component';
import { LayoutMaterialAppointmentDetailComponent } from './layout-material-appointment-detail/layout-material-appointment-detail.component';
import { LayoutMaterialParamComponent } from './layout-material-param/layout-material-param.component';
import { LayoutMaterialTicketComponent } from './layout-material-ticket/layout-material-ticket.component';
import { LayoutMaterialWrittenSeatComponent } from './layout-material-written-seat/layout-material-written-seat.component';
import { LayoutMaterialSearchComponent } from './layout-material-search/layout-material-search.component';
import { LayoutMaterialAspectComponent } from './layout-material-aspect/layout-material-aspect.component';
import { LayoutMaterialScoreComponent } from './layout-material-score/layout-material-score.component';
import { LayoutStdSubjectPageComponent } from './layout-std-subject-page/layout-std-subject-page.component';
import { LayoutStdSubjectDetailComponent } from './layout-std-subject-detail/layout-std-subject-detail.component';
import { LayoutMaterialTicketResultComponent } from './layout-material-ticket-result/layout-material-ticket-result.component';

const routes: Routes = [
  {path: 'interview', component: LayoutMaterialInterviewComponent},
  {path: 'written', component: LayoutMaterialWrittenComponent},
  {path: 'ticket', component: LayoutMaterialTicketComponent},
  {path: 'aspect', component: LayoutMaterialAspectComponent},
  {path: 'appointment', component: LayoutMaterialAppointmentComponent},
  {path: 'search', component: LayoutMaterialSearchComponent},
  {path: 'score', component: LayoutMaterialScoreComponent},
  {path: 'stdsubject', component: LayoutStdSubjectPageComponent},
  {path: 'ticketResult', component: LayoutMaterialTicketResultComponent}
];

@NgModule({
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ],
  entryComponents: [LayoutMaterialAppointmentDetailComponent,LayoutMaterialParamComponent,LayoutMaterialWrittenSeatComponent],
  declarations: [ LayoutMaterialWrittenComponent, LayoutMaterialInterviewComponent, LayoutMaterialAppointmentComponent, LayoutMaterialAppointmentDetailComponent, LayoutMaterialParamComponent, LayoutMaterialTicketComponent, LayoutMaterialWrittenSeatComponent, LayoutMaterialSearchComponent, LayoutMaterialAspectComponent, LayoutMaterialScoreComponent, LayoutStdSubjectPageComponent, LayoutStdSubjectDetailComponent, LayoutMaterialTicketResultComponent],
  exports: [
    RouterModule
  ]
})

export class LayoutMaterialModule {
}
