summaryrefslogtreecommitdiff
path: root/src/services/accounts/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/accounts/index.ts')
-rw-r--r--src/services/accounts/index.ts19
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;