This commit is contained in:
2026-01-24 16:13:37 +03:30
parent 64d6d1e391
commit 05edc9abb4
14 changed files with 240 additions and 50 deletions
@@ -0,0 +1,16 @@
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;
}