wallet
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsString, IsOptional, IsBoolean, IsNumber } from 'class-validator';
|
||||
import { IsString, IsOptional, IsBoolean } from 'class-validator';
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
/**
|
||||
@@ -28,28 +28,8 @@ export class UpdateUserDto {
|
||||
@IsString()
|
||||
marriageDate?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: "Referrer's identifier (optional)", example: 'abc123' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
referrer?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Is the user active?', example: true })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isActive?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Gender flag (boolean)', example: true })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
gender?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Wallet balance (integer)', example: 0 })
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
wallet?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Reward points (integer)', example: 0 })
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
points?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user