src/user/dtos/update-user-collaboration.dto.ts
Properties |
status |
Type : string
|
Decorators :
@ApiProperty({description: 'Collaboration Request Status', type: String, example: 'accept'})
|
import { ApiProperty } from "@nestjs/swagger";
import { IsIn, IsString } from "class-validator";
export class UpdateUserCollaborationDto {
@ApiProperty({
description: "Collaboration Request Status",
type: String,
example: "accept",
})
@IsString()
@IsIn(["accept", "ignore"])
status: string;
}