Merge pull request 'feat/report' (#7) from feat/report into development
Reviewed-on: #7pull/8/head^2
commit
e139c2bcd8
|
@ -48,6 +48,12 @@ import { TransactionItemModel } from './modules/transaction/transaction/data/mod
|
||||||
import { TransactionTaxModel } from './modules/transaction/transaction/data/models/transaction-tax.model';
|
import { TransactionTaxModel } from './modules/transaction/transaction/data/models/transaction-tax.model';
|
||||||
import { ReconciliationModule } from './modules/transaction/reconciliation/reconciliation.module';
|
import { ReconciliationModule } from './modules/transaction/reconciliation/reconciliation.module';
|
||||||
|
|
||||||
|
import { ReportModule } from './modules/reports/report/report.module';
|
||||||
|
import { ReportBookmarkModule } from './modules/reports/report-bookmark/report-bookmark.module';
|
||||||
|
import { ReportExportModule } from './modules/reports/report-export/report-export.module';
|
||||||
|
import { ReportBookmarkModel } from './modules/reports/shared/models/report-bookmark.model';
|
||||||
|
import { ExportReportHistoryModel } from './modules/reports/shared/models/export-report-history.model';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
ApmModule.register(),
|
ApmModule.register(),
|
||||||
|
@ -80,6 +86,10 @@ import { ReconciliationModule } from './modules/transaction/reconciliation/recon
|
||||||
UserModel,
|
UserModel,
|
||||||
VipCategoryModel,
|
VipCategoryModel,
|
||||||
VipCodeModel,
|
VipCodeModel,
|
||||||
|
|
||||||
|
// report
|
||||||
|
ReportBookmarkModel,
|
||||||
|
ExportReportHistoryModel,
|
||||||
],
|
],
|
||||||
synchronize: false,
|
synchronize: false,
|
||||||
}),
|
}),
|
||||||
|
@ -114,6 +124,11 @@ import { ReconciliationModule } from './modules/transaction/reconciliation/recon
|
||||||
// session
|
// session
|
||||||
SeasonTypeModule,
|
SeasonTypeModule,
|
||||||
SeasonPeriodModule,
|
SeasonPeriodModule,
|
||||||
|
|
||||||
|
// report
|
||||||
|
ReportModule,
|
||||||
|
ReportBookmarkModule,
|
||||||
|
ReportExportModule,
|
||||||
],
|
],
|
||||||
controllers: [],
|
controllers: [],
|
||||||
providers: [
|
providers: [
|
||||||
|
|
|
@ -14,4 +14,8 @@ export enum MODULE_NAME {
|
||||||
USER_PRIVILEGE_CONFIGURATION = 'user-privilege-configurations',
|
USER_PRIVILEGE_CONFIGURATION = 'user-privilege-configurations',
|
||||||
VIP_CATEGORY = 'vip-categories',
|
VIP_CATEGORY = 'vip-categories',
|
||||||
VIP_CODE = 'vip-codes',
|
VIP_CODE = 'vip-codes',
|
||||||
|
|
||||||
|
REPORT = 'report',
|
||||||
|
REPORT_BOOKMARK = 'report-bookmark',
|
||||||
|
REPORT_EXPORT = 'report-export',
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
|
||||||
|
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
||||||
|
import { Public } from 'src/core/guards';
|
||||||
|
import { MODULE_NAME } from 'src/core/strings/constants/module.constants';
|
||||||
|
|
||||||
|
@ApiTags(`${MODULE_NAME.REPORT_BOOKMARK.split('-').join(' ')}`)
|
||||||
|
@Controller(`v1/${MODULE_NAME.REPORT_BOOKMARK}`)
|
||||||
|
@Public(false)
|
||||||
|
@ApiBearerAuth('JWT')
|
||||||
|
export class ReportBookmarkController {
|
||||||
|
@Post()
|
||||||
|
async create() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async getAll() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Put('applied')
|
||||||
|
async applied() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Put('unapplied')
|
||||||
|
async unapplied() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Delete(':id')
|
||||||
|
async delete() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { ReportBookmarkController } from './report-bookmark.controller';
|
||||||
|
import { ReportBookmarkService } from './report-bookmark.service';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [],
|
||||||
|
controllers: [ReportBookmarkController],
|
||||||
|
providers: [ReportBookmarkService],
|
||||||
|
})
|
||||||
|
export class ReportBookmarkModule {}
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ReportBookmarkService {}
|
|
@ -0,0 +1,35 @@
|
||||||
|
import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
|
||||||
|
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
||||||
|
import { Public } from 'src/core/guards';
|
||||||
|
import { MODULE_NAME } from 'src/core/strings/constants/module.constants';
|
||||||
|
|
||||||
|
@ApiTags(`${MODULE_NAME.REPORT_EXPORT.split('-').join(' ')}`)
|
||||||
|
@Controller(`v1/${MODULE_NAME.REPORT_EXPORT}`)
|
||||||
|
@Public(false)
|
||||||
|
@ApiBearerAuth('JWT')
|
||||||
|
export class ReportExportController {
|
||||||
|
@Post()
|
||||||
|
async create() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async getAll() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Delete(':id')
|
||||||
|
async delete() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get('processing')
|
||||||
|
async getAllProcessing() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get('filename-history')
|
||||||
|
async getListHistoryFileName() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { ReportExportController } from './report-export.controller';
|
||||||
|
import { ReportExportService } from './report-export.service';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [],
|
||||||
|
controllers: [ReportExportController],
|
||||||
|
providers: [ReportExportService],
|
||||||
|
})
|
||||||
|
export class ReportExportModule {}
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ReportExportService {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { Controller, Get, Post } from '@nestjs/common';
|
||||||
|
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
||||||
|
import { Public } from 'src/core/guards';
|
||||||
|
import { MODULE_NAME } from 'src/core/strings/constants/module.constants';
|
||||||
|
|
||||||
|
@ApiTags(`${MODULE_NAME.REPORT.split('-').join(' ')}`)
|
||||||
|
@Controller(`v1/${MODULE_NAME.REPORT}`)
|
||||||
|
@Public(false)
|
||||||
|
@ApiBearerAuth('JWT')
|
||||||
|
export class ReportController {
|
||||||
|
@Get('config')
|
||||||
|
async getReportConfig() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Post('data')
|
||||||
|
async getReportData() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { ReportController } from './report.controller';
|
||||||
|
import { ReportService } from './report.service';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [],
|
||||||
|
controllers: [ReportController],
|
||||||
|
providers: [ReportService],
|
||||||
|
})
|
||||||
|
export class ReportModule {}
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ReportService {}
|
Loading…
Reference in New Issue