From ccf496a5d97aec8f7500875d43ad548b05f7ae88 Mon Sep 17 00:00:00 2001 From: M1000fr Date: Mon, 2 Dec 2024 16:41:13 +0100 Subject: [PATCH] ref: remove majs on folder --- src/modules/auth/auth.controller.ts | 6 +++--- src/modules/auth/auth.module.ts | 7 ++++--- .../auth/{Decorators => decorators}/roles.decorator.ts | 0 src/modules/auth/{Dto => dto}/refresh.dto.ts | 0 src/modules/auth/{Guards => guards}/discord.guard.ts | 0 src/modules/auth/{Guards => guards}/jwt.guard.ts | 0 src/modules/auth/{Guards => guards}/refresh.guard.ts | 0 src/modules/auth/{Guards => guards}/role.guard.ts | 0 .../auth/{Strategy => strategy}/discord.strategy.ts | 0 .../auth/{Strategy => strategy}/jwt.strategy.ts | 0 .../auth/{Strategy => strategy}/refresh.strategy.ts | 0 src/modules/user/{Dto => dto}/bulk-delete-user.dto.ts | 0 src/modules/user/{Dto => dto}/create-user.dto.ts | 0 src/modules/user/{Dto => dto}/update-user.dto.ts | 0 src/modules/user/user.controller.ts | 10 +++++----- src/modules/user/user.service.ts | 4 ++-- 16 files changed, 14 insertions(+), 13 deletions(-) rename src/modules/auth/{Decorators => decorators}/roles.decorator.ts (100%) rename src/modules/auth/{Dto => dto}/refresh.dto.ts (100%) rename src/modules/auth/{Guards => guards}/discord.guard.ts (100%) rename src/modules/auth/{Guards => guards}/jwt.guard.ts (100%) rename src/modules/auth/{Guards => guards}/refresh.guard.ts (100%) rename src/modules/auth/{Guards => guards}/role.guard.ts (100%) rename src/modules/auth/{Strategy => strategy}/discord.strategy.ts (100%) rename src/modules/auth/{Strategy => strategy}/jwt.strategy.ts (100%) rename src/modules/auth/{Strategy => strategy}/refresh.strategy.ts (100%) rename src/modules/user/{Dto => dto}/bulk-delete-user.dto.ts (100%) rename src/modules/user/{Dto => dto}/create-user.dto.ts (100%) rename src/modules/user/{Dto => dto}/update-user.dto.ts (100%) diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 6c1ce3f..93ed826 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -12,10 +12,10 @@ import { ApiBearerAuth, ApiBody, ApiOkResponse } from "@nestjs/swagger"; import { URLSearchParams } from "node:url"; -import { ResfreshDTO } from "./Dto/refresh.dto"; +import { ResfreshDTO } from "./dto/refresh.dto"; -import { DiscordAuthGuard } from "./Guards/discord.guard"; -import { RefreshJwtAuthGuard } from "./Guards/refresh.guard"; +import { DiscordAuthGuard } from "./guards/discord.guard"; +import { RefreshJwtAuthGuard } from "./guards/refresh.guard"; import { AuthService } from "./auth.service"; @Controller("auth") diff --git a/src/modules/auth/auth.module.ts b/src/modules/auth/auth.module.ts index d0692da..568b49a 100644 --- a/src/modules/auth/auth.module.ts +++ b/src/modules/auth/auth.module.ts @@ -3,9 +3,10 @@ import { AuthController } from "./auth.controller"; import { AuthService } from "./auth.service"; import { UserModule } from "@Modules/user/user.module"; -import { DiscordStrategy } from "./Strategy/discord.strategy"; -import { JWTStrategy } from "./Strategy/jwt.strategy"; -import { RefreshJWTStrategy } from "./Strategy/refresh.strategy"; + +import { DiscordStrategy } from "./strategy/discord.strategy"; +import { JWTStrategy } from "./strategy/jwt.strategy"; +import { RefreshJWTStrategy } from "./strategy/refresh.strategy"; @Module({ imports: [UserModule], diff --git a/src/modules/auth/Decorators/roles.decorator.ts b/src/modules/auth/decorators/roles.decorator.ts similarity index 100% rename from src/modules/auth/Decorators/roles.decorator.ts rename to src/modules/auth/decorators/roles.decorator.ts diff --git a/src/modules/auth/Dto/refresh.dto.ts b/src/modules/auth/dto/refresh.dto.ts similarity index 100% rename from src/modules/auth/Dto/refresh.dto.ts rename to src/modules/auth/dto/refresh.dto.ts diff --git a/src/modules/auth/Guards/discord.guard.ts b/src/modules/auth/guards/discord.guard.ts similarity index 100% rename from src/modules/auth/Guards/discord.guard.ts rename to src/modules/auth/guards/discord.guard.ts diff --git a/src/modules/auth/Guards/jwt.guard.ts b/src/modules/auth/guards/jwt.guard.ts similarity index 100% rename from src/modules/auth/Guards/jwt.guard.ts rename to src/modules/auth/guards/jwt.guard.ts diff --git a/src/modules/auth/Guards/refresh.guard.ts b/src/modules/auth/guards/refresh.guard.ts similarity index 100% rename from src/modules/auth/Guards/refresh.guard.ts rename to src/modules/auth/guards/refresh.guard.ts diff --git a/src/modules/auth/Guards/role.guard.ts b/src/modules/auth/guards/role.guard.ts similarity index 100% rename from src/modules/auth/Guards/role.guard.ts rename to src/modules/auth/guards/role.guard.ts diff --git a/src/modules/auth/Strategy/discord.strategy.ts b/src/modules/auth/strategy/discord.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/discord.strategy.ts rename to src/modules/auth/strategy/discord.strategy.ts diff --git a/src/modules/auth/Strategy/jwt.strategy.ts b/src/modules/auth/strategy/jwt.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/jwt.strategy.ts rename to src/modules/auth/strategy/jwt.strategy.ts diff --git a/src/modules/auth/Strategy/refresh.strategy.ts b/src/modules/auth/strategy/refresh.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/refresh.strategy.ts rename to src/modules/auth/strategy/refresh.strategy.ts diff --git a/src/modules/user/Dto/bulk-delete-user.dto.ts b/src/modules/user/dto/bulk-delete-user.dto.ts similarity index 100% rename from src/modules/user/Dto/bulk-delete-user.dto.ts rename to src/modules/user/dto/bulk-delete-user.dto.ts diff --git a/src/modules/user/Dto/create-user.dto.ts b/src/modules/user/dto/create-user.dto.ts similarity index 100% rename from src/modules/user/Dto/create-user.dto.ts rename to src/modules/user/dto/create-user.dto.ts diff --git a/src/modules/user/Dto/update-user.dto.ts b/src/modules/user/dto/update-user.dto.ts similarity index 100% rename from src/modules/user/Dto/update-user.dto.ts rename to src/modules/user/dto/update-user.dto.ts diff --git a/src/modules/user/user.controller.ts b/src/modules/user/user.controller.ts index 774ccb6..21e4f50 100644 --- a/src/modules/user/user.controller.ts +++ b/src/modules/user/user.controller.ts @@ -15,12 +15,12 @@ import { ApiUnauthorizedResponse, } from "@nestjs/swagger"; -import { Role } from "@Modules/auth/Decorators/roles.decorator"; -import { JwtAuthGuard } from "@Modules/auth/Guards/jwt.guard"; -import { RolesGuard } from "@Modules/auth/Guards/role.guard"; +import { Role } from "@/modules/auth/decorators/roles.decorator"; +import { JwtAuthGuard } from "@/modules/auth/guards/jwt.guard"; +import { RolesGuard } from "@/modules/auth/guards/role.guard"; -import { BulkDeleteUserDTO } from "./Dto/bulk-delete-user.dto"; -import { CreateUserDTO } from "./Dto/create-user.dto"; +import { BulkDeleteUserDTO } from "./dto/bulk-delete-user.dto"; +import { CreateUserDTO } from "./dto/create-user.dto"; import { UserEntity } from "./user.entity"; import { UserService } from "./user.service"; diff --git a/src/modules/user/user.service.ts b/src/modules/user/user.service.ts index 0673d1f..f50cb95 100644 --- a/src/modules/user/user.service.ts +++ b/src/modules/user/user.service.ts @@ -1,8 +1,8 @@ import { Injectable, NotFoundException } from "@nestjs/common"; import { PrismaService } from "@Modules/prisma/prisma.service"; -import { CreateUserDTO } from "./Dto/create-user.dto"; -import { UpdateUserDTO } from "./Dto/update-user.dto"; +import { CreateUserDTO } from "./dto/create-user.dto"; +import { UpdateUserDTO } from "./dto/update-user.dto"; import { Prisma } from "@prisma/client"; @Injectable()