From 1317eac457419bb0bc53cde38db3014cbf3e335e Mon Sep 17 00:00:00 2001 From: Dhoni77 Date: Thu, 5 Oct 2023 21:01:11 +0530 Subject: [PATCH] feat: add interfaces --- .../src/app/account/transfer-cash-balance.dto.ts | 15 +++++++++++++++ .../interfaces/interfaces.ts | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 apps/api/src/app/account/transfer-cash-balance.dto.ts create mode 100644 apps/client/src/app/pages/accounts/transfer-cash-balance/interfaces/interfaces.ts diff --git a/apps/api/src/app/account/transfer-cash-balance.dto.ts b/apps/api/src/app/account/transfer-cash-balance.dto.ts new file mode 100644 index 000000000..3ccb12e15 --- /dev/null +++ b/apps/api/src/app/account/transfer-cash-balance.dto.ts @@ -0,0 +1,15 @@ +import { + IsNumber, + IsString, +} from 'class-validator'; + +export class TransferCashBalanceDto { + @IsString() + fromAccount: string; + + @IsString() + toAccount: string; + + @IsNumber() + balance: number; +} diff --git a/apps/client/src/app/pages/accounts/transfer-cash-balance/interfaces/interfaces.ts b/apps/client/src/app/pages/accounts/transfer-cash-balance/interfaces/interfaces.ts new file mode 100644 index 000000000..b3e2649c4 --- /dev/null +++ b/apps/client/src/app/pages/accounts/transfer-cash-balance/interfaces/interfaces.ts @@ -0,0 +1,5 @@ +import { Account } from '@prisma/client'; + +export interface TransferCashBalanceDialogParams { + accounts: Account[]; +}