implmentação swagger no modulo orders-payment
This commit is contained in:
15
src/products/dto/exposed-product.dto.ts
Normal file
15
src/products/dto/exposed-product.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// src/products/dto/exposed-product.dto.ts
|
||||
import { IsString, IsNumber, IsOptional } from 'class-validator';
|
||||
|
||||
export class ExposedProductDto {
|
||||
@IsString()
|
||||
readonly productId: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
readonly location?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
readonly exposureTime?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user