import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { NcRoute } from '@ng-cortex/core';

/** 路由配置列表 */
export const routes: NcRoute[] = [
    {
        path: 'application-management',
        data: { name: '应用管理', major: true, reused: true },
        loadChildren: () => import('./nc-application/src/public-api').then(library => library.NcApplicationModule)
    },
    {
        path: 'menu-management',
        data: { name: '菜单管理', major: true, reused: true },
        loadChildren: () => import('./nc-menu/src/public-api').then(library => library.NcMenuModule)
    },
    {
        path: 'company-management',
        data: { name: '公司管理', major: true, reused: true },
        loadChildren: () => import('./nc-company/src/public-api').then(library => library.NcCompanyModule)
    },
    {
        path: 'organization-management',
        data: { name: '机构管理', major: true, reused: true },
        loadChildren: () => import('./nc-organization/src/public-api').then(library => library.NcOrganizationModule)
    },
    {
        path: 'user-management',
        data: { name: '用户管理', major: true, reused: true },
        loadChildren: () => import('./nc-user/src/public-api').then(library => library.NcUserModule)
    },
    {
        path: 'role-management',
        data: { name: '角色管理', major: true, reused: true },
        loadChildren: () => import('./nc-role/src/public-api').then(library => library.NcRoleModule)
    },
    {
        path: 'dict-management',
        data: { name: '数据字典管理', major: true, reused: true },
        loadChildren: () => import('./nc-dict/src/public-api').then(library => library.NcDictModule)
    },
    {
        path: 'local-file-management',
        data: { name: '本地文件管理', major: true, reused: true },
        loadChildren: () => import('./nc-local-file/src/public-api').then(library => library.NcLocalFileModule)
    }
];

/** dev路由模块 */
@NgModule({
    imports: [RouterModule.forChild(routes)]
})
export class DevRoutingModule { }
