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.
 
 
 
 
 
 

31 lines
598 B

import { IsString, IsNotEmpty, IsPositive, IsOptional } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'
import { Express } from 'express'
export class UserDto {
@IsPositive()
@IsOptional()
readonly ftId: number
@IsString()
@IsNotEmpty()
readonly username: string
@IsOptional()
readonly status: string
@IsOptional()
readonly avatar: string
@IsOptional()
readonly authToken: string
@IsOptional()
readonly isVerified: boolean
}
export class AvatarUploadDto {
@ApiProperty({ type: 'string', format: 'binary' })
file: Express.Multer.File
}