31 lines
708 B
TypeScript
31 lines
708 B
TypeScript
|
|
import { Module } from '@nestjs/common';
|
||
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||
|
|
import { RoleController } from './role.controller';
|
||
|
|
import { MenuController } from './menu.controller';
|
||
|
|
import { RoleService } from './role.service';
|
||
|
|
import { MenuService } from './menu.service';
|
||
|
|
import { SysRole } from './entities/sys-role.entity';
|
||
|
|
import { SysMenu } from './entities/sys-menu.entity';
|
||
|
|
|
||
|
|
@Module({
|
||
|
|
imports: [
|
||
|
|
TypeOrmModule.forFeature([
|
||
|
|
SysRole,
|
||
|
|
SysMenu,
|
||
|
|
]),
|
||
|
|
],
|
||
|
|
controllers: [
|
||
|
|
RoleController,
|
||
|
|
MenuController,
|
||
|
|
],
|
||
|
|
providers: [
|
||
|
|
RoleService,
|
||
|
|
MenuService,
|
||
|
|
],
|
||
|
|
exports: [
|
||
|
|
RoleService,
|
||
|
|
MenuService,
|
||
|
|
TypeOrmModule,
|
||
|
|
],
|
||
|
|
})
|
||
|
|
export class RbacModule {}
|