Skip to content

Commit 2d455c9

Browse files
committed
restructured project
1 parent 62e88fe commit 2d455c9

27 files changed

+14
-14
lines changed

src/apps/auth/auth.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Body, Controller, Get, HttpCode, HttpStatus, Post, Req } from '@nestjs/common';
22
import { Request } from 'express';
3-
import { UseJwtGuard, UseJwtRefreshGuard } from 'src/filters/jwt.guard';
4-
import { Response } from 'src/utils/response.utils';
3+
import { UseJwtGuard, UseJwtRefreshGuard } from 'src/common/filters/jwt.guard';
4+
import { Response } from 'src/common/utils/response.utils';
55
import { AuthService } from './auth.service';
66
import { LoginDTO } from './dto/login.dto';
77
import { RegisterDTO } from './dto/register.dto';

src/apps/auth/auth.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
55
import { User } from 'src/entities/user.entity';
66
import { UserDevice } from 'src/entities/user-device.entity';
77
import { AccessTokenStrategy, RefreshTokenStrategy } from './strategies';
8-
import { RedisModule } from 'src/modules/redis/redis.module';
8+
import { RedisModule } from 'src/shared/redis/redis.module';
99

1010
@Module({
1111
imports: [

src/apps/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { compare, hash } from 'bcrypt';
1010
import { Request } from 'express';
1111
import { UserDevice } from 'src/entities/user-device.entity';
1212
import { DeviceDTO } from './dto/device.dto';
13-
import { RedisService } from 'src/modules/redis/redis.service';
13+
import { RedisService } from 'src/shared/redis/redis.service';
1414
import { I18nService } from 'nestjs-i18n';
1515

1616
@Injectable()

src/apps/auth/strategies/access-token.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
22
import { ConfigService } from '@nestjs/config'
33
import { PassportStrategy } from '@nestjs/passport'
44
import { ExtractJwt, Strategy } from 'passport-jwt'
5-
import { RedisService } from 'src/modules/redis/redis.service';
5+
import { RedisService } from 'src/shared/redis/redis.service';
66

77
@Injectable()
88
export class AccessTokenStrategy extends PassportStrategy(Strategy, 'jwt') {

src/apps/config/config.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Controller, Get, Query } from '@nestjs/common';
2-
import { Response } from 'src/utils';
2+
import { Response } from 'src/common/utils';
33
import { ConfigService } from './config.service';
44

55
@Controller('config')

src/apps/file/file.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Body, Controller, Post, UploadedFile, UseInterceptors } from '@nestjs/common';
22
import { FileInterceptor } from '@nestjs/platform-express';
33
import { Express } from 'express';
4-
import { UseJwtGuard } from 'src/filters/jwt.guard';
4+
import { UseJwtGuard } from 'src/common/filters/jwt.guard';
55
import { FileService } from './file.service';
66

77
@Controller('file')

src/apps/file/file.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FileService } from './file.service';
33
import { FileController } from './file.controller';
44
import { MulterModule } from '@nestjs/platform-express';
55
import { memoryStorage } from 'multer';
6-
import { StorageModule } from 'src/modules/storage/storage.module';
6+
import { StorageModule } from 'src/shared/storage/storage.module';
77

88
@Module({
99
imports: [

src/apps/file/file.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
2-
import { StorageService } from 'src/modules/storage/storage.service';
3-
import { Response } from 'src/utils';
2+
import { StorageService } from 'src/shared/storage/storage.service';
3+
import { Response } from 'src/common/utils';
44
// import { Response } from 'src/utils/response';
55
// import { storage } from 'src/utils/storage/storage';
66

src/apps/user/user.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, Req } from '@nestjs/common';
22
import { Request } from 'express';
3-
import { UseJwtGuard } from 'src/filters/jwt.guard';
4-
import { Response } from 'src/utils';
3+
import { UseJwtGuard } from 'src/common/filters/jwt.guard';
4+
import { Response } from 'src/common/utils';
55
import { UpdateUserDTO } from './update-user.dto';
66
import { UserService } from './user.service';
77

0 commit comments

Comments
 (0)