diff options
Diffstat (limited to 'src/services/accounts/index.ts')
-rw-r--r-- | src/services/accounts/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/services/accounts/index.ts b/src/services/accounts/index.ts new file mode 100644 index 0000000..fc3a830 --- /dev/null +++ b/src/services/accounts/index.ts @@ -0,0 +1,19 @@ +import { ServiceParams } from '../../lib/ServiceContext'; +import { Account } from '../types'; + +const service: ServiceParams<Account> = { + route: 'accounts', + name: 'Счета', + nameSingular: 'Счёт', + tableFields: [ + { key: 'name', label: 'Название' }, + { key: 'balance', label: 'Баланс' }, + ], + searchBy: ['name'], + default: { + name: '', + balance: 0, + }, +}; + +export default service; |