import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, Min } from 'class-validator';

export class CreateBonusCreditsDto {
  @ApiProperty({ example: '' })
  @IsNotEmpty({ message: 'عنوان کد هدیه اجباری است' })
  title: string;

  @ApiProperty({ example: '' })
  @IsNotEmpty({ message: 'مبلغ کد هدیه اجباری است' })
  amount: number;

  @ApiProperty({ example: 1 })
  @IsNotEmpty()
  @Min(1)
  count: number;
}
