fix: change String type data to string

pull/25/head
shancheas 2024-07-09 17:20:10 +07:00
parent 56e7d25acd
commit 99261f37cd
35 changed files with 115 additions and 115 deletions

View File

@ -4,9 +4,9 @@ import { BaseDataOrchestrator } from './base-data.orchestrator';
export abstract class BaseDataTransactionOrchestrator<
Entity,
> extends BaseDataOrchestrator<Entity> {
abstract active(dataId: string): Promise<String>;
abstract confirm(dataId: string): Promise<String>;
abstract inactive(dataId: string): Promise<String>;
abstract active(dataId: string): Promise<string>;
abstract confirm(dataId: string): Promise<string>;
abstract inactive(dataId: string): Promise<string>;
abstract batchConfirm(dataIds: string[]): Promise<BatchResult>;
abstract batchActive(dataIds: string[]): Promise<BatchResult>;
abstract batchInactive(dataIds: string[]): Promise<BatchResult>;

View File

@ -3,6 +3,6 @@ import { BatchResult } from 'src/core/response/domain/ok-response.interface';
export abstract class BaseDataOrchestrator<Entity> {
abstract create(data: Entity): Promise<Entity>;
abstract update(dataId: string, data: Entity): Promise<Entity>;
abstract delete(dataId: string): Promise<String>;
abstract delete(dataId: string): Promise<string>;
abstract batchDelete(dataIds: string[]): Promise<BatchResult>;
}

View File

@ -36,7 +36,7 @@ export class {{pascalCase name}}DataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -46,7 +46,7 @@ export class {{pascalCase name}}DataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -56,7 +56,7 @@ export class {{pascalCase name}}DataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -74,7 +74,7 @@ export class {{pascalCase name}}DataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -43,7 +43,7 @@ import {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -48,7 +48,7 @@ export class {{pascalCase name}}DataOrchestrator extends Base{{pascalCase orches
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.{{constantCase name}});
await this.deleteManager.execute();
@ -65,7 +65,7 @@ export class {{pascalCase name}}DataOrchestrator extends Base{{pascalCase orches
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.{{constantCase name}});
await this.activeManager.execute();
@ -82,7 +82,7 @@ export class {{pascalCase name}}DataOrchestrator extends Base{{pascalCase orches
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.{{constantCase name}});
await this.confirmManager.execute();
@ -99,7 +99,7 @@ export class {{pascalCase name}}DataOrchestrator extends Base{{pascalCase orches
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(
this.serviceData,

View File

@ -36,7 +36,7 @@ export class {{pascalCase name}}DataOrchestrator extends Base{{pascalCase orches
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.{{constantCase name}});
await this.deleteManager.execute();

View File

@ -49,7 +49,7 @@ export class ItemCategoryDataOrchestrator extends BaseDataTransactionOrchestrato
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.ITEM_CATEGORY);
await this.deleteManager.execute();
@ -66,7 +66,7 @@ export class ItemCategoryDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.ITEM_CATEGORY);
await this.activeManager.execute();
@ -83,7 +83,7 @@ export class ItemCategoryDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.ITEM_CATEGORY);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class ItemCategoryDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.ITEM_CATEGORY);
await this.inactiveManager.execute();

View File

@ -34,7 +34,7 @@ export class ItemCategoryDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class ItemCategoryDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class ItemCategoryDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class ItemCategoryDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -36,7 +36,7 @@ export class ItemRateDataOrchestrator extends BaseDataOrchestrator<ItemRateEntit
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.ITEM_RATE);
await this.deleteManager.execute();

View File

@ -38,7 +38,7 @@ export class ItemRateDataController {
}
// @Delete(':id')
// async delete(@Param('id') dataId: string): Promise<String> {
// async delete(@Param('id') dataId: string): Promise<string> {
// return await this.orchestrator.delete(dataId);
// }
}

View File

@ -60,7 +60,7 @@ export class ItemDataOrchestrator extends BaseDataTransactionOrchestrator<ItemEn
return this.updateManager.getResult();
}
async delete(dataId, tenantId?: string): Promise<String> {
async delete(dataId, tenantId?: string): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.ITEM);
await this.deleteManager.execute();
@ -77,7 +77,7 @@ export class ItemDataOrchestrator extends BaseDataTransactionOrchestrator<ItemEn
return this.batchDeleteManager.getResult();
}
async active(dataId, tenantId?: string): Promise<String> {
async active(dataId, tenantId?: string): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.ITEM);
await this.activeManager.execute();
@ -94,7 +94,7 @@ export class ItemDataOrchestrator extends BaseDataTransactionOrchestrator<ItemEn
return this.batchActiveManager.getResult();
}
async confirm(dataId, tenantId?: string): Promise<String> {
async confirm(dataId, tenantId?: string): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.ITEM);
await this.confirmManager.execute();
@ -111,7 +111,7 @@ export class ItemDataOrchestrator extends BaseDataTransactionOrchestrator<ItemEn
return this.batchConfirmManager.getResult();
}
async inactive(dataId, tenantId?: string): Promise<String> {
async inactive(dataId, tenantId?: string): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.ITEM);
await this.inactiveManager.execute();

View File

@ -34,7 +34,7 @@ export class ItemDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class ItemDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class ItemDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class ItemDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -60,7 +60,7 @@ export class SeasonPeriodDataOrchestrator extends BaseDataTransactionOrchestrato
return this.updatePriceManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.SEASON_PERIOD);
await this.deleteManager.execute();
@ -77,7 +77,7 @@ export class SeasonPeriodDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.SEASON_PERIOD);
await this.activeManager.execute();
@ -94,7 +94,7 @@ export class SeasonPeriodDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.SEASON_PERIOD);
await this.confirmManager.execute();
@ -111,7 +111,7 @@ export class SeasonPeriodDataOrchestrator extends BaseDataTransactionOrchestrato
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.SEASON_PERIOD);
await this.inactiveManager.execute();

View File

@ -44,7 +44,7 @@ export class SeasonPeriodDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -54,7 +54,7 @@ export class SeasonPeriodDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -64,7 +64,7 @@ export class SeasonPeriodDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -91,7 +91,7 @@ export class SeasonPeriodDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -48,7 +48,7 @@ export class SeasonTypeDataOrchestrator extends BaseDataTransactionOrchestrator<
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.SEASON_TYPE);
await this.deleteManager.execute();
@ -65,7 +65,7 @@ export class SeasonTypeDataOrchestrator extends BaseDataTransactionOrchestrator<
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.SEASON_TYPE);
await this.activeManager.execute();
@ -82,7 +82,7 @@ export class SeasonTypeDataOrchestrator extends BaseDataTransactionOrchestrator<
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.SEASON_TYPE);
await this.confirmManager.execute();
@ -99,7 +99,7 @@ export class SeasonTypeDataOrchestrator extends BaseDataTransactionOrchestrator<
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.SEASON_TYPE);
await this.inactiveManager.execute();

View File

@ -34,7 +34,7 @@ export class SeasonTypeDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class SeasonTypeDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class SeasonTypeDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class SeasonTypeDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -48,7 +48,7 @@ export class PaymentMethodDataOrchestrator extends BaseDataTransactionOrchestrat
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.PAYMENT_METHOD);
await this.deleteManager.execute();
@ -65,7 +65,7 @@ export class PaymentMethodDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.PAYMENT_METHOD);
await this.activeManager.execute();
@ -82,7 +82,7 @@ export class PaymentMethodDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.PAYMENT_METHOD);
await this.confirmManager.execute();
@ -99,7 +99,7 @@ export class PaymentMethodDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(
this.serviceData,

View File

@ -34,7 +34,7 @@ export class PaymentMethodDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class PaymentMethodDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class PaymentMethodDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class PaymentMethodDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -39,7 +39,7 @@ export class ReconciliationDataOrchestrator {
return this.recapManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.CONFIRMED);
this.confirmManager.setService(this.serviceData, TABLE_NAME.TRANSACTION);
await this.confirmManager.execute();
@ -56,7 +56,7 @@ export class ReconciliationDataOrchestrator {
return this.batchConfirmManager.getResult();
}
async cancel(dataId): Promise<String> {
async cancel(dataId): Promise<string> {
this.cancelManager.setData(dataId, STATUS.REJECTED);
this.cancelManager.setService(this.serviceData, TABLE_NAME.TRANSACTION);
await this.cancelManager.execute();

View File

@ -34,12 +34,12 @@ export class ReconciliationDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@Patch(':id/cancel')
async cancel(@Param('id') dataId: string): Promise<String> {
async cancel(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.cancel(dataId);
}

View File

@ -50,7 +50,7 @@ export class TaxDataOrchestrator extends BaseDataTransactionOrchestrator<TaxEnti
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(
this.serviceData,
@ -72,7 +72,7 @@ export class TaxDataOrchestrator extends BaseDataTransactionOrchestrator<TaxEnti
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.TAX);
await this.activeManager.execute();
@ -86,7 +86,7 @@ export class TaxDataOrchestrator extends BaseDataTransactionOrchestrator<TaxEnti
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.TAX);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class TaxDataOrchestrator extends BaseDataTransactionOrchestrator<TaxEnti
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(
this.serviceData,

View File

@ -34,7 +34,7 @@ export class TaxDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class TaxDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class TaxDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class TaxDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -45,7 +45,7 @@ export class TransactionDataOrchestrator {
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.TRANSACTION);
await this.deleteManager.execute();
@ -62,7 +62,7 @@ export class TransactionDataOrchestrator {
return this.batchDeleteManager.getResult();
}
async cancel(dataId): Promise<String> {
async cancel(dataId): Promise<string> {
this.cancelManager.setData(dataId, STATUS.CANCEL);
this.cancelManager.setService(this.serviceData, TABLE_NAME.TRANSACTION);
await this.cancelManager.execute();
@ -79,7 +79,7 @@ export class TransactionDataOrchestrator {
return this.batchCancelManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.TRANSACTION);
await this.confirmManager.execute();
@ -96,7 +96,7 @@ export class TransactionDataOrchestrator {
return this.batchConfirmManager.getResult();
}
async confirmData(dataId): Promise<String> {
async confirmData(dataId): Promise<string> {
this.confirmDataManager.setData(dataId, STATUS.ACTIVE);
this.confirmDataManager.setService(
this.serviceData,

View File

@ -34,7 +34,7 @@ export class TransactionDataController {
}
@Patch(':id/confirm-data')
async confirmData(@Param('id') dataId: string): Promise<String> {
async confirmData(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirmData(dataId);
}
@ -44,7 +44,7 @@ export class TransactionDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class TransactionDataController {
}
@Patch(':id/cancel')
async cancel(@Param('id') dataId: string): Promise<String> {
async cancel(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.cancel(dataId);
}
@ -72,7 +72,7 @@ export class TransactionDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -49,7 +49,7 @@ export class VipCategoryDataOrchestrator extends BaseDataTransactionOrchestrator
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.VIP_CATEGORY);
await this.deleteManager.execute();
@ -66,7 +66,7 @@ export class VipCategoryDataOrchestrator extends BaseDataTransactionOrchestrator
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.VIP_CATEGORY);
await this.activeManager.execute();
@ -83,7 +83,7 @@ export class VipCategoryDataOrchestrator extends BaseDataTransactionOrchestrator
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.VIP_CATEGORY);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class VipCategoryDataOrchestrator extends BaseDataTransactionOrchestrator
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.VIP_CATEGORY);
await this.inactiveManager.execute();

View File

@ -34,7 +34,7 @@ export class VipCategoryDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -44,7 +44,7 @@ export class VipCategoryDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -54,7 +54,7 @@ export class VipCategoryDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -72,7 +72,7 @@ export class VipCategoryDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -21,7 +21,7 @@ export class VipCodeDataOrchestrator extends BaseDataOrchestrator<VipCodeEntity>
update(dataId: string, data: VipCodeEntity): Promise<VipCodeEntity> {
throw new Error('Method not implemented.');
}
delete(dataId: string): Promise<String> {
delete(dataId: string): Promise<string> {
throw new Error('Method not implemented.');
}
batchDelete(dataIds: string[]): Promise<BatchResult> {

View File

@ -19,7 +19,7 @@ export class VipCodeDataController {
}
@Post('generate-code')
async generateCOde(): Promise<String> {
async generateCOde(): Promise<string> {
return await this.orchestrator.generateCode();
}
@ -29,7 +29,7 @@ export class VipCodeDataController {
// }
// @Delete(':id')
// async delete(@Param('id') dataId: string): Promise<String> {
// async delete(@Param('id') dataId: string): Promise<string> {
// return await this.orchestrator.delete(dataId);
// }
}

View File

@ -58,7 +58,7 @@ export class TenantDataOrchestrator extends BaseDataTransactionOrchestrator<User
return this.updatePasswordManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.TENANT);
await this.deleteManager.execute();
@ -72,7 +72,7 @@ export class TenantDataOrchestrator extends BaseDataTransactionOrchestrator<User
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.TENANT);
await this.activeManager.execute();
@ -86,7 +86,7 @@ export class TenantDataOrchestrator extends BaseDataTransactionOrchestrator<User
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.TENANT);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class TenantDataOrchestrator extends BaseDataTransactionOrchestrator<User
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.TENANT);
await this.inactiveManager.execute();

View File

@ -36,7 +36,7 @@ export class TenantDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -46,7 +46,7 @@ export class TenantDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -56,7 +56,7 @@ export class TenantDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -82,7 +82,7 @@ export class TenantDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -43,7 +43,7 @@ export class TenantItemDataController {
async active(
@Param('tenant_id') tenant_id: string,
@Param('id') dataId: string,
): Promise<String> {
): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -59,7 +59,7 @@ export class TenantItemDataController {
async confirm(
@Param('tenant_id') tenant_id: string,
@Param('id') dataId: string,
): Promise<String> {
): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -75,7 +75,7 @@ export class TenantItemDataController {
async inactive(
@Param('tenant_id') tenant_id: string,
@Param('id') dataId: string,
): Promise<String> {
): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -100,7 +100,7 @@ export class TenantItemDataController {
async delete(
@Param('tenant_id') tenant_id: string,
@Param('id') dataId: string,
): Promise<String> {
): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -49,7 +49,7 @@ export class UserPrivilegeDataOrchestrator extends BaseDataTransactionOrchestrat
return this.updateManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.USER_PRIVILEGE);
await this.deleteManager.execute();
@ -66,7 +66,7 @@ export class UserPrivilegeDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.USER_PRIVILEGE);
await this.activeManager.execute();
@ -83,7 +83,7 @@ export class UserPrivilegeDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.USER_PRIVILEGE);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class UserPrivilegeDataOrchestrator extends BaseDataTransactionOrchestrat
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(
this.serviceData,

View File

@ -36,7 +36,7 @@ export class UserPrivilegeDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -46,7 +46,7 @@ export class UserPrivilegeDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -56,7 +56,7 @@ export class UserPrivilegeDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -74,7 +74,7 @@ export class UserPrivilegeDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}

View File

@ -58,7 +58,7 @@ export class UserDataOrchestrator extends BaseDataTransactionOrchestrator<UserEn
return this.updatePasswordManager.getResult();
}
async delete(dataId): Promise<String> {
async delete(dataId): Promise<string> {
this.deleteManager.setData(dataId);
this.deleteManager.setService(this.serviceData, TABLE_NAME.USER);
await this.deleteManager.execute();
@ -72,7 +72,7 @@ export class UserDataOrchestrator extends BaseDataTransactionOrchestrator<UserEn
return this.batchDeleteManager.getResult();
}
async active(dataId): Promise<String> {
async active(dataId): Promise<string> {
this.activeManager.setData(dataId, STATUS.ACTIVE);
this.activeManager.setService(this.serviceData, TABLE_NAME.USER);
await this.activeManager.execute();
@ -86,7 +86,7 @@ export class UserDataOrchestrator extends BaseDataTransactionOrchestrator<UserEn
return this.batchActiveManager.getResult();
}
async confirm(dataId): Promise<String> {
async confirm(dataId): Promise<string> {
this.confirmManager.setData(dataId, STATUS.ACTIVE);
this.confirmManager.setService(this.serviceData, TABLE_NAME.USER);
await this.confirmManager.execute();
@ -100,7 +100,7 @@ export class UserDataOrchestrator extends BaseDataTransactionOrchestrator<UserEn
return this.batchConfirmManager.getResult();
}
async inactive(dataId): Promise<String> {
async inactive(dataId): Promise<string> {
this.inactiveManager.setData(dataId, STATUS.INACTIVE);
this.inactiveManager.setService(this.serviceData, TABLE_NAME.USER);
await this.inactiveManager.execute();

View File

@ -36,7 +36,7 @@ export class UserDataController {
}
@Patch(':id/active')
async active(@Param('id') dataId: string): Promise<String> {
async active(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.active(dataId);
}
@ -46,7 +46,7 @@ export class UserDataController {
}
@Patch(':id/confirm')
async confirm(@Param('id') dataId: string): Promise<String> {
async confirm(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.confirm(dataId);
}
@ -56,7 +56,7 @@ export class UserDataController {
}
@Patch(':id/inactive')
async inactive(@Param('id') dataId: string): Promise<String> {
async inactive(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.inactive(dataId);
}
@ -82,7 +82,7 @@ export class UserDataController {
}
@Delete(':id')
async delete(@Param('id') dataId: string): Promise<String> {
async delete(@Param('id') dataId: string): Promise<string> {
return await this.orchestrator.delete(dataId);
}
}