U
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user