import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from 'src/app/shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { ExamFinanceContainer } from './container/exam-finance/exam-finance.container';
import { ExamFinanceRouter } from './router/exam-finance-router';
import { ExamFinanceSearchComponent } from './presenter/search/exam-finance-search/exam-finance-search.component';
import { ExamFinanceListComponent } from './presenter/list/exam-finance-list/exam-finance-list.component';
import { ExamFinanceDialogComponent } from './presenter/dialog/exam-finance-dialog/exam-finance-dialog.component';
import { ExamFinanceInfoComponent } from './presenter/info/exam-finance-info/exam-finance-info.component';
import { FinanceIsMainTrueComponent } from './presenter/list/finance-is-main-true/finance-is-main-true.component';
import { FinanceIsMainFalseComponent } from './presenter/list/finance-is-main-false/finance-is-main-false.component';

const routes : Routes =[
    {
        path:'',
        component: ExamFinanceRouter,
        children:[
            {
                path:'',
                component: ExamFinanceContainer
            },
            {
                path:'info/:id',
                component: ExamFinanceInfoComponent
            },
        ]
    }
]

@NgModule({
    declarations: [
        ExamFinanceContainer,
        ExamFinanceRouter,
        ExamFinanceSearchComponent,
        ExamFinanceListComponent,
        ExamFinanceDialogComponent,
        ExamFinanceInfoComponent,
        FinanceIsMainTrueComponent,
        FinanceIsMainFalseComponent
        ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class ExamFinanceModule { }
