Files
negareh-api/src/modules/print/dto/create-section.dto.ts
T
2026-01-24 16:13:37 +03:30

17 lines
443 B
TypeScript

import { IsString, IsOptional, IsBoolean, IsInt, Min, IsEnum, IsNotEmpty } from 'class-validator';
import { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
export class CreateSectionDto {
@IsString()
@ApiProperty({ example: ' ' })
title: string;
@IsOptional()
@IsInt()
@Min(0)
@Type(() => Number)
@ApiPropertyOptional({ example: 1 })
order?: number;
}