53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { TMWorkspaceType } from './entities/workspace-type.entity';
|
|
import { TMWorkspace } from './entities/workspace.entity';
|
|
import { TMProject } from './entities/project.entity';
|
|
import { TMTaskPhase } from './entities/task-phase.entity';
|
|
import { TMTask } from './entities/task.entity';
|
|
import { TMRemark } from './entities/remark.entity';
|
|
import { TMAttachment } from './entities/attachment.entity';
|
|
import { TMCheckListItem } from './entities/check-list-item.entity';
|
|
import { WorkspaceRepository } from './repositories/workspace.repository';
|
|
import { WorkspaceController } from './controllers/workspace.controller';
|
|
import { WorkspaceService } from './providers/workspace.service';
|
|
import { User } from '../users/entities/user.entity';
|
|
|
|
// import { WorkspaceTypeService } from './providers/workspace-type.service';
|
|
// import { WorkspaceService } from './providers/workspace.service';
|
|
// import { ProjectService } from './providers/project.service';
|
|
// import { TaskPhaseService } from './providers/task-phase.service';
|
|
// import { TaskService } from './providers/task.service';
|
|
|
|
// import { TaskManagerController } from './task-manager.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
TMWorkspaceType,
|
|
TMWorkspace,
|
|
TMProject,
|
|
TMTaskPhase,
|
|
TMTask,
|
|
TMRemark,
|
|
TMAttachment,
|
|
TMCheckListItem,
|
|
User
|
|
]),
|
|
],
|
|
controllers: [WorkspaceController],
|
|
providers: [
|
|
WorkspaceRepository,
|
|
WorkspaceService,
|
|
// WorkspaceTypeService,
|
|
// ProjectService,
|
|
// TaskPhaseService,
|
|
// TaskService,
|
|
],
|
|
exports: [
|
|
WorkspaceService,
|
|
WorkspaceRepository
|
|
],
|
|
})
|
|
export class TaskManagerModule {} |