This commit is contained in:
2025-12-13 10:04:13 +03:30
parent c5c71491a4
commit 85b4e5bb6a
6 changed files with 101 additions and 5 deletions
@@ -0,0 +1,17 @@
import { IsNumber, IsOptional, Min } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
/**
* DTO for converting user score (points) to wallet balance.
*/
export class ConvertScoreToWalletDto {
@ApiPropertyOptional({
description: 'Amount of points to convert. If not provided, converts all available points',
example: 100,
minimum: 1,
})
@IsOptional()
@IsNumber()
@Min(1)
points?: number;
}