import { IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-validator';
import { Type } from 'class-transformer';

export class BindInvitationDto {
  @IsString()
  @IsNotEmpty()
  inviteCode: string;
}

export class CreateInviteWithdrawalDto {
  @IsNumber()
  @Type(() => Number)
  amount: number;
}

export class QueryInviteRecordsDto {
  @IsOptional()
  @Type(() => Number)
  page?: number = 1;

  @IsOptional()
  @Type(() => Number)
  pageSize?: number = 20;
}
