mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-19 00:37:51 +00:00
add moodules
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user