add booking
This commit is contained in:
18
server/src/calendar/dto/cancel-booking.dto.ts
Normal file
18
server/src/calendar/dto/cancel-booking.dto.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MaxLength,
|
||||
} from 'class-validator';
|
||||
|
||||
export class CancelBookingDto {
|
||||
@IsNotEmpty()
|
||||
@IsInt()
|
||||
canceledByUserId: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(50)
|
||||
canceledReason?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user