10 lines
246 B
TypeScript
10 lines
246 B
TypeScript
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
|
|
|
|
export class SetAvatarRequestDto {
|
|
/** id картинки, загруженной через POST /files */
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(64)
|
|
fileId: string;
|
|
}
|