implmentação swagger no modulo orders-payment
This commit is contained in:
12
src/products/dto/ProductValidationDto.ts
Normal file
12
src/products/dto/ProductValidationDto.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export class ProductValidationDto {
|
||||
descricao: string;
|
||||
codigoProduto: number;
|
||||
codigoAuxiliar: string;
|
||||
marca: string;
|
||||
images: string[];
|
||||
tipoProduto: 'AUTOSSERVICO' | 'SHOWROOM' | 'ELETROMOVEIS' | 'OUTROS';
|
||||
precoVenda: number;
|
||||
qtdeEstoqueLoja: number;
|
||||
qtdeEstoqueCD: number;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
8
src/products/dto/product-ecommerce.dto.ts
Normal file
8
src/products/dto/product-ecommerce.dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
export class ProductEcommerceDto {
|
||||
productIdErp: number;
|
||||
productId: number;
|
||||
price: number;
|
||||
priceKit: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user