Skip to content

Commit 0c52d6a

Browse files
committed
chore(team): integrate base snippets per module
1 parent 2dcd2bd commit 0c52d6a

8 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/modules/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { BullModule } from '@nestjs/bullmq';
1717
import { MailAdapter } from 'src/shared/adapters/mail';
1818
import { S3Module } from '@libs/s3';
1919
import { MigrationService } from 'src/shared/migration';
20+
import { TeamModule } from '../teams';
2021

2122
@Module({
2223
imports: [
@@ -68,6 +69,7 @@ import { MigrationService } from 'src/shared/migration';
6869
}),
6970
AuthModule,
7071
UserModule,
72+
TeamModule,
7173
BullBoardModule.forRoot({
7274
route: '/queues',
7375
adapter: FastifyAdapter,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { TeamsController } from './teams.controller';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { ApiBaseController } from 'src/shared/decorators';
2+
import { TeamsService } from '../services';
3+
4+
@ApiBaseController('teams', 'Teams')
5+
export class TeamsController {
6+
constructor(private readonly facade: TeamsService) {}
7+
}

src/modules/teams/controller/teams.swagger.ts

Whitespace-only changes.

src/modules/teams/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { TeamsModule } from './teams.module';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { TeamsService } from './teams.service';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { Injectable } from '@nestjs/common';
2+
3+
@Injectable()
4+
export class TeamsService {}

src/modules/teams/teams.module.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Module } from '@nestjs/common';
2+
import { TeamsController } from './controller';
3+
import { TeamsService } from './services';
4+
5+
@Module({
6+
imports: [],
7+
controllers: [TeamsController],
8+
providers: [TeamsService],
9+
exports: [],
10+
})
11+
export class TeamsModule {}

0 commit comments

Comments
 (0)