????
Your IP : 18.222.197.93
"use strict";
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 __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardController = void 0;
const openapi = require("@nestjs/swagger");
const common_1 = require("@nestjs/common");
const swagger_1 = require("@nestjs/swagger");
const service_1 = require("../service");
let DashboardController = class DashboardController {
constructor(service) {
this.service = service;
}
tkeDauTu() {
return this.service.tkDauTu();
}
tkLinhVuc() {
return this.service.tkeLinhVuc();
}
tkeDoanhNghiep() {
return this.service.tkeDoanhNghiep();
}
tkeVonDauTu() {
return this.service.tkeVonDauTu();
}
tkeQuocGia() {
return this.service.tkeQuocGia();
}
tkeLoaiKhu(loaiKhu) {
return this.service.tkeLoaiKhu(loaiKhu);
}
};
__decorate([
(0, common_1.Get)('TKDauTu'),
openapi.ApiResponse({ status: 200, type: require("../entity/dashboard.interface").TKeDauTu }),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkeDauTu", null);
__decorate([
(0, common_1.Get)('TKLinhVuc'),
openapi.ApiResponse({ status: 200, type: [require("../entity/dashboard.interface").TKeLinhVuc] }),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkLinhVuc", null);
__decorate([
(0, common_1.Get)('TKDoanhNghiep'),
openapi.ApiResponse({ status: 200, type: require("../entity/dashboard.interface").TKeDoanhNghiep }),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkeDoanhNghiep", null);
__decorate([
(0, common_1.Get)('TKeVonDauTu'),
openapi.ApiResponse({ status: 200, type: require("../entity/dashboard.interface").TKeDoanhNghiep }),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkeVonDauTu", null);
__decorate([
(0, common_1.Get)('TKeQuocGia'),
openapi.ApiResponse({ status: 200, type: [require("../entity/dashboard.interface").TKeQuocGia] }),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkeQuocGia", null);
__decorate([
(0, swagger_1.ApiParam)({ name: 'loaiKhu', enum: ['KKT', 'KCN', 'CCN'] }),
(0, common_1.Get)(':loaiKhu'),
openapi.ApiResponse({ status: 200, type: Number }),
__param(0, (0, common_1.Param)('loaiKhu')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], DashboardController.prototype, "tkeLoaiKhu", null);
DashboardController = __decorate([
(0, swagger_1.ApiTags)('Dashboard'),
(0, common_1.Controller)('dashboard'),
__metadata("design:paramtypes", [service_1.DashboardService])
], DashboardController);
exports.DashboardController = DashboardController;