mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-18 16:27:51 +00:00
15 lines
274 B
TypeScript
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;
|
||
|
|
}
|