update: add update and delete for the announecemnt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user