Files
tvone-api/src/module/articles/dto/attach-image.dto.ts
T
2026-04-17 23:42:24 +01:00

15 lines
274 B
TypeScript

import { Type } from 'class-transformer';
import { IsInt, IsOptional, IsUUID, Max, Min } from 'class-validator';
export class AttachImageDto {
@IsUUID()
imageId: string;
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(0)
@Max(10_000)
sortOrder?: number;
}