chore: add uploader and user profile picture

This commit is contained in:
mahyargdz
2025-07-24 12:37:08 +03:30
parent f42280846c
commit 5f4b679467
23 changed files with 1639 additions and 232 deletions
@@ -1,9 +1,13 @@
import { UseGuards, applyDecorators } from "@nestjs/common";
import { ApiBearerAuth } from "@nestjs/swagger";
import { ApiBearerAuth, ApiHeader } from "@nestjs/swagger";
import { AdminRouteGuard } from "../../modules/auth/guards/admin.guard";
import { JwtAuthGuard } from "../../modules/auth/guards/auth.guard";
export function AuthGuards() {
return applyDecorators(UseGuards(JwtAuthGuard, AdminRouteGuard), ApiBearerAuth("authorization"));
return applyDecorators(
UseGuards(JwtAuthGuard, AdminRouteGuard),
ApiBearerAuth("authorization"),
ApiHeader({ name: "x-business-id", description: "Business ID" }),
);
}
+3
View File
@@ -107,6 +107,9 @@ export const enum UserMessage {
FORWARDERS_EMAIL_VALID = "آدرس ایمیل فوروارد باید معتبر باشد",
FORWARDERS_ARRAY = "آدرس های فوروارد باید یک آرایه باشد",
FORWARDERS_STRING = "آدرس های فوروارد باید یک رشته باشد",
PROFILE_PICTURE_URL = "آدرس تصویر پروفایل باید یک آدرس اینترنتی معتبر باشد",
USER_UPDATED_SUCCESSFULLY = "کاربر با موفقیت به روز رسانی شد",
PROFILE_PICTURE_NOT_EMPTY = "تصویر پروفایل نمیتواند خالی باشد",
}
export const enum CommonMessage {