update: add update and delete for the announecemnt

This commit is contained in:
mahyargdz
2025-04-13 12:14:57 +03:30
parent 6f55f7a1d6
commit b15f1b54fe
5 changed files with 137 additions and 35 deletions
@@ -0,0 +1,26 @@
import { IsDate, IsOptional, IsString, IsUUID } from "class-validator";
export class UpdateAnnouncementDto {
@IsOptional()
@IsString()
title?: string;
@IsOptional()
@IsString()
content?: string;
@IsOptional()
@IsDate()
publishAt?: Date;
@IsOptional()
@IsUUID()
serviceId?: string;
@IsOptional()
@IsUUID(undefined, { each: true })
userIds?: string[];
@IsOptional()
isImportant?: boolean;
}