chore: get announcements for customers

This commit is contained in:
Matin
2025-02-20 12:09:37 +03:30
parent 5b8f419d81
commit e0a267bf2b
6 changed files with 42 additions and 3 deletions
@@ -61,4 +61,17 @@ export class CreateAnnouncementDto {
example: ["f7b1b3b1-1b1b-4b1b-8b1b-1b1b1b1b1b1b"],
})
groupIds: string[];
@IsOptional()
@IsArray()
@IsUUID("4", {
each: true,
message: AnnouncementMessage.USER_MUST_BE_UUID,
})
@ApiProperty({
type: [String],
description: "Array of users ids",
example: ["f7b1b3b1-1b1b-4b1b-8b1b-1b1b1b1b1b1b"],
})
userIds: string[];
}