18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
import { IsString, IsOptional, IsInt, Min, Max } from 'class-validator';
|
|
import { Type } from 'class-transformer';
|
|
|
|
export class FollowFollowersDto {
|
|
@IsString()
|
|
targetUsername: string; // follow những ai đang follow người này
|
|
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(100)
|
|
limit?: number = 10;
|
|
|
|
@IsOptional()
|
|
@Type(() => Boolean)
|
|
skipVerified?: boolean = false;
|
|
} |