mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
feat/working on update card control
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsNumber, IsOptional, IsPositive } from 'class-validator';
|
||||
|
||||
export class UpdateCardControlsRequestDto {
|
||||
@ApiProperty()
|
||||
@IsNumber()
|
||||
@IsPositive()
|
||||
amount!: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsPositive()
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional()
|
||||
count?: number;
|
||||
}
|
Reference in New Issue
Block a user