chore: add uploader and user profile picture
This commit is contained in:
@@ -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" }),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user