localhost_oa_based/src/modules/system/system.module.ts

46 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-02-28 17:02:46 +08:00
import { Module } from '@nestjs/common';
2024-02-28 08:32:35 +08:00
2024-02-28 17:02:46 +08:00
import { RouterModule } from '@nestjs/core';
2024-02-28 08:32:35 +08:00
2024-02-28 17:02:46 +08:00
import { UserModule } from '../user/user.module';
2024-02-28 08:32:35 +08:00
2024-02-28 17:02:46 +08:00
import { DeptModule } from './dept/dept.module';
import { DictItemModule } from './dict-item/dict-item.module';
import { DictTypeModule } from './dict-type/dict-type.module';
import { LogModule } from './log/log.module';
import { MenuModule } from './menu/menu.module';
import { OnlineModule } from './online/online.module';
import { ParamConfigModule } from './param-config/param-config.module';
import { RoleModule } from './role/role.module';
import { ServeModule } from './serve/serve.module';
import { TaskModule } from './task/task.module';
2024-02-28 08:32:35 +08:00
const modules = [
UserModule,
RoleModule,
MenuModule,
DeptModule,
DictTypeModule,
DictItemModule,
ParamConfigModule,
LogModule,
TaskModule,
OnlineModule,
2024-02-29 09:29:03 +08:00
ServeModule
2024-02-28 17:02:46 +08:00
];
2024-02-28 08:32:35 +08:00
@Module({
imports: [
...modules,
RouterModule.register([
{
path: 'system',
module: SystemModule,
2024-02-29 09:29:03 +08:00
children: [...modules]
}
])
2024-02-28 08:32:35 +08:00
],
2024-02-29 09:29:03 +08:00
exports: [...modules]
2024-02-28 08:32:35 +08:00
})
export class SystemModule {}