You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
442 B

import { Type } from 'class-transformer'
import { IsArray, IsEmail, IsNumber, IsPositive, IsString } from 'class-validator'
export class IdDto {
@IsNumber()
id: number
}
export class PasswordDto {
@IsString()
password: string
}
export class MuteDto {
@Type(() => Number)
@IsArray()
@IsNumber({}, { each: true })
@IsPositive({ each: true })
data: number[]
}
export class EmailDto {
@IsEmail()
email: string
}