feat: adiciona endpoint oferta-8026 para buscar ofertas promocionais
This commit is contained in:
@@ -27,6 +27,8 @@ import { ProductDetailResponseDto } from './dto/product-detail-response.dto';
|
||||
import { RotinaA4QueryDto } from './dto/rotina-a4-query.dto';
|
||||
import { RotinaA4ResponseDto } from './dto/rotina-a4-response.dto';
|
||||
import { UnifiedProductSearchDto } from './dto/unified-product-search.dto';
|
||||
import { Oferta8026QueryDto } from './dto/oferta-8026-query.dto';
|
||||
import { Oferta8026ResponseDto } from './dto/oferta-8026-response.dto';
|
||||
|
||||
//@ApiBearerAuth()
|
||||
//@UseGuards(JwtAuthGuard)
|
||||
@@ -151,4 +153,23 @@ export class ProductsController {
|
||||
): Promise<ProductDetailResponseDto[]> {
|
||||
return this.productsService.unifiedProductSearch(query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Endpoint para buscar ofertas 8026
|
||||
*/
|
||||
@Post('oferta-8026')
|
||||
@ApiOperation({ summary: 'Busca ofertas 8026 conforme parâmetros específicos' })
|
||||
@ApiBody({ type: Oferta8026QueryDto })
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: 'Lista de ofertas retornada com sucesso.',
|
||||
type: Oferta8026ResponseDto,
|
||||
isArray: true,
|
||||
})
|
||||
@ApiResponse({ status: 400, description: 'Parâmetros inválidos.' })
|
||||
async getOferta8026(
|
||||
@Body() query: Oferta8026QueryDto,
|
||||
): Promise<Oferta8026ResponseDto[]> {
|
||||
return this.productsService.getOferta8026(query);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user