feat: add generated code
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsString, IsNotEmpty, IsISO8601, IsOptional, IsBoolean } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class CreateConfirmationDocumentDto {
|
||||
@ApiProperty({ required: false, description: 'Номер' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
number?: string;
|
||||
|
||||
@ApiProperty({ description: 'Дата согласования' })
|
||||
@IsISO8601()
|
||||
@Type(() => Date)
|
||||
date: Date;
|
||||
|
||||
@ApiProperty({ description: 'Код руководителя' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
managerCode: string;
|
||||
|
||||
@ApiProperty({ description: 'Идентификатор заявки' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
orderId: string;
|
||||
|
||||
@ApiProperty({ required: false, description: 'Согласовано/Не согласовано' })
|
||||
@IsBoolean()
|
||||
@IsOptional()
|
||||
confirmed?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user