refactor: swagger tag
This commit is contained in:
@@ -5,7 +5,7 @@ import { CreateWorkspaceTypeDto } from "../dto/workspace-type/create-workspace-t
|
|||||||
import { UpdateWorkspaceTypeDto } from "../dto/workspace-type/update-workspace-type.dto";
|
import { UpdateWorkspaceTypeDto } from "../dto/workspace-type/update-workspace-type.dto";
|
||||||
import { TMWorkspaceType } from "../entities/workspace-type.entity";
|
import { TMWorkspaceType } from "../entities/workspace-type.entity";
|
||||||
|
|
||||||
@ApiTags("Task Manager - Workspace Types")
|
@ApiTags("Task Manager")
|
||||||
@Controller("task-manager/workspace-types")
|
@Controller("task-manager/workspace-types")
|
||||||
export class WorkspaceTypeController {
|
export class WorkspaceTypeController {
|
||||||
constructor(private readonly workspaceTypeService: WorkspaceTypeService) {}
|
constructor(private readonly workspaceTypeService: WorkspaceTypeService) {}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { CreateWorkspaceDto } from '../dto/workspace/create-workspace.dto';
|
|||||||
import { UpdateWorkspaceDto } from '../dto/workspace/update-workspace.dto';
|
import { UpdateWorkspaceDto } from '../dto/workspace/update-workspace.dto';
|
||||||
import { TMWorkspace } from '../entities/workspace.entity';
|
import { TMWorkspace } from '../entities/workspace.entity';
|
||||||
|
|
||||||
@ApiTags('Task Manager - Workspaces')
|
@ApiTags('Task Manager')
|
||||||
@Controller('task-manager/workspaces')
|
@Controller('task-manager/workspaces')
|
||||||
export class WorkspaceController {
|
export class WorkspaceController {
|
||||||
constructor(private readonly workspaceService: WorkspaceService) {}
|
constructor(private readonly workspaceService: WorkspaceService) {}
|
||||||
|
|||||||
@@ -1,18 +1,21 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from "@nestjs/common";
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
||||||
|
|
||||||
import { TMWorkspaceType } from './entities/workspace-type.entity';
|
import { TMWorkspaceType } from "./entities/workspace-type.entity";
|
||||||
import { TMWorkspace } from './entities/workspace.entity';
|
import { TMWorkspace } from "./entities/workspace.entity";
|
||||||
import { TMProject } from './entities/project.entity';
|
import { TMProject } from "./entities/project.entity";
|
||||||
import { TMTaskPhase } from './entities/task-phase.entity';
|
import { TMTaskPhase } from "./entities/task-phase.entity";
|
||||||
import { TMTask } from './entities/task.entity';
|
import { TMTask } from "./entities/task.entity";
|
||||||
import { TMRemark } from './entities/remark.entity';
|
import { TMRemark } from "./entities/remark.entity";
|
||||||
import { TMAttachment } from './entities/attachment.entity';
|
import { TMAttachment } from "./entities/attachment.entity";
|
||||||
import { TMCheckListItem } from './entities/check-list-item.entity';
|
import { TMCheckListItem } from "./entities/check-list-item.entity";
|
||||||
import { WorkspaceRepository } from './repositories/workspace.repository';
|
import { WorkspaceRepository } from "./repositories/workspace.repository";
|
||||||
import { WorkspaceController } from './controllers/workspace.controller';
|
import { WorkspaceController } from "./controllers/workspace.controller";
|
||||||
import { WorkspaceService } from './providers/workspace.service';
|
import { WorkspaceService } from "./providers/workspace.service";
|
||||||
import { User } from '../users/entities/user.entity';
|
import { User } from "../users/entities/user.entity";
|
||||||
|
import { WorkspaceTypeService } from "./providers/workspace-type.service";
|
||||||
|
import { WorkspaceTypeRepository } from "./repositories/workspace-type.repository";
|
||||||
|
import { WorkspaceTypeController } from "./controllers/workspace-type.controller";
|
||||||
|
|
||||||
// import { WorkspaceTypeService } from './providers/workspace-type.service';
|
// import { WorkspaceTypeService } from './providers/workspace-type.service';
|
||||||
// import { WorkspaceService } from './providers/workspace.service';
|
// import { WorkspaceService } from './providers/workspace.service';
|
||||||
@@ -24,30 +27,18 @@ import { User } from '../users/entities/user.entity';
|
|||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
TypeOrmModule.forFeature([
|
TypeOrmModule.forFeature([TMWorkspaceType, TMWorkspace, TMProject, TMTaskPhase, TMTask, TMRemark, TMAttachment, TMCheckListItem, User]),
|
||||||
TMWorkspaceType,
|
|
||||||
TMWorkspace,
|
|
||||||
TMProject,
|
|
||||||
TMTaskPhase,
|
|
||||||
TMTask,
|
|
||||||
TMRemark,
|
|
||||||
TMAttachment,
|
|
||||||
TMCheckListItem,
|
|
||||||
User
|
|
||||||
]),
|
|
||||||
],
|
],
|
||||||
controllers: [WorkspaceController],
|
controllers: [WorkspaceController, WorkspaceTypeController],
|
||||||
providers: [
|
providers: [
|
||||||
WorkspaceRepository,
|
WorkspaceRepository,
|
||||||
WorkspaceService,
|
WorkspaceService,
|
||||||
// WorkspaceTypeService,
|
WorkspaceTypeRepository,
|
||||||
|
WorkspaceTypeService,
|
||||||
// ProjectService,
|
// ProjectService,
|
||||||
// TaskPhaseService,
|
// TaskPhaseService,
|
||||||
// TaskService,
|
// TaskService,
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [WorkspaceService, WorkspaceRepository],
|
||||||
WorkspaceService,
|
|
||||||
WorkspaceRepository
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
export class TaskManagerModule {}
|
export class TaskManagerModule {}
|
||||||
|
|||||||
Reference in New Issue
Block a user