swagger configurado na rota chavenfe
This commit is contained in:
79
src/logistic/dist/logistic.controller.js
vendored
79
src/logistic/dist/logistic.controller.js
vendored
@@ -1,79 +0,0 @@
|
||||
"use strict";
|
||||
/* eslint-disable prettier/prettier */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/*
|
||||
https://docs.nestjs.com/controllers#controllers
|
||||
*/
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
return function (target, key) { decorator(target, key, paramIndex); }
|
||||
};
|
||||
exports.__esModule = true;
|
||||
exports.LogisticController = void 0;
|
||||
var common_1 = require("@nestjs/common");
|
||||
var jwt_auth_guard_1 = require("src/auth/guards/jwt-auth.guard"); // ajuste o caminho se necessário
|
||||
var swagger_1 = require("@nestjs/swagger");
|
||||
var LogisticController = /** @class */ (function () {
|
||||
function LogisticController(logisticService) {
|
||||
this.logisticService = logisticService;
|
||||
}
|
||||
LogisticController.prototype.getExpedicao = function () {
|
||||
return this.logisticService.getExpedicao();
|
||||
};
|
||||
LogisticController.prototype.getEmployee = function () {
|
||||
return this.logisticService.getEmployee();
|
||||
};
|
||||
LogisticController.prototype.getDelivery = function (placa) {
|
||||
return this.logisticService.getDeliveries(placa);
|
||||
};
|
||||
LogisticController.prototype.getStatusCar = function (placa) {
|
||||
return this.logisticService.getStatusCar(placa);
|
||||
};
|
||||
LogisticController.prototype.createOutCar = function (data) {
|
||||
return this.logisticService.createCarOut(data);
|
||||
};
|
||||
LogisticController.prototype.createinCar = function (data) {
|
||||
return this.logisticService.createCarIn(data);
|
||||
};
|
||||
__decorate([
|
||||
common_1.Get('expedicao'),
|
||||
swagger_1.ApiOperation({ summary: 'Retorna informações de expedição' })
|
||||
], LogisticController.prototype, "getExpedicao");
|
||||
__decorate([
|
||||
common_1.Get('employee'),
|
||||
swagger_1.ApiOperation({ summary: 'Retorna lista de funcionários' })
|
||||
], LogisticController.prototype, "getEmployee");
|
||||
__decorate([
|
||||
common_1.Get('deliveries/:placa'),
|
||||
swagger_1.ApiOperation({ summary: 'Retorna entregas por placa' }),
|
||||
__param(0, common_1.Param('placa'))
|
||||
], LogisticController.prototype, "getDelivery");
|
||||
__decorate([
|
||||
common_1.Get('status-car/:placa'),
|
||||
swagger_1.ApiOperation({ summary: 'Retorna status do veículo por placa' }),
|
||||
__param(0, common_1.Param('placa'))
|
||||
], LogisticController.prototype, "getStatusCar");
|
||||
__decorate([
|
||||
common_1.Post('create'),
|
||||
swagger_1.ApiOperation({ summary: 'Registra saída de veículo' }),
|
||||
__param(0, common_1.Body())
|
||||
], LogisticController.prototype, "createOutCar");
|
||||
__decorate([
|
||||
common_1.Post('return-car'),
|
||||
swagger_1.ApiOperation({ summary: 'Registra retorno de veículo' }),
|
||||
__param(0, common_1.Body())
|
||||
], LogisticController.prototype, "createinCar");
|
||||
LogisticController = __decorate([
|
||||
swagger_1.ApiTags('Logística'),
|
||||
swagger_1.ApiBearerAuth(),
|
||||
common_1.UseGuards(jwt_auth_guard_1.JwtAuthGuard),
|
||||
common_1.Controller('api/v1/logistic')
|
||||
], LogisticController);
|
||||
return LogisticController;
|
||||
}());
|
||||
exports.LogisticController = LogisticController;
|
||||
Reference in New Issue
Block a user