brief-07-back/src/offer/dto/offer.dto.ts
2024-06-09 01:22:52 +02:00

22 lines
441 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsPositive, IsString } from 'class-validator';
export class OfferDto {
@ApiProperty({
type: String,
description: 'Cryptocurrency UUID',
example: '12121-DSZD-E221212-2121221',
})
@IsString()
id_crypto: string;
@ApiProperty({
type: 'number',
description: 'Amount traded ',
example: 21,
})
@IsNumber()
@IsPositive()
amount: number;
}