init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class SetCarDeliveryDto {
|
||||
@ApiProperty({ description: 'Car model', example: 'Toyota Camry' })
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
carModel!: string;
|
||||
|
||||
@ApiProperty({ description: 'Car color', example: 'White' })
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
carColor!: string;
|
||||
|
||||
@ApiProperty({ description: 'License plate number', example: '12ABC345' })
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
plateNumber!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user