Browse Source

feat: add interfaces

pull/2433/head
Dhoni77 2 years ago
parent
commit
1317eac457
  1. 15
      apps/api/src/app/account/transfer-cash-balance.dto.ts
  2. 5
      apps/client/src/app/pages/accounts/transfer-cash-balance/interfaces/interfaces.ts

15
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;
}

5
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[];
}
Loading…
Cancel
Save