blob: 1936a9c7712aea3f7699f5d2131f32520807fb92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { ServiceParams } from '../../lib/ServiceContext';
import { Account } from '../types';
const service: ServiceParams<Account> = {
route: 'accounts',
name: 'Счета',
nameSingular: 'Счёт',
tableFields: [
{ key: 'name', label: 'Название' },
{ key: 'currency', label: 'Валюта' },
{ key: 'balance', label: 'Баланс' },
],
searchBy: ['name'],
default: {
name: '',
balance: 0,
},
};
export default service;
|