feat: update the announcement update process
This commit is contained in:
@@ -1,26 +1,5 @@
|
||||
import { IsDate, IsOptional, IsString, IsUUID } from "class-validator";
|
||||
import { PartialType } from "@nestjs/swagger";
|
||||
|
||||
export class UpdateAnnouncementDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
title?: string;
|
||||
import { CreateAnnouncementDto } from "./create-announcement.dto";
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
content?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsDate()
|
||||
publishAt?: Date;
|
||||
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
serviceId?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsUUID(undefined, { each: true })
|
||||
userIds?: string[];
|
||||
|
||||
@IsOptional()
|
||||
isImportant?: boolean;
|
||||
}
|
||||
export class UpdateAnnouncementDto extends PartialType(CreateAnnouncementDto) {}
|
||||
|
||||
Reference in New Issue
Block a user