mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
add account list page and account add page
This commit is contained in:
@@ -160,4 +160,18 @@ export default {
|
||||
password
|
||||
});
|
||||
},
|
||||
getAllAccounts: () => {
|
||||
return axios.get('v1/accounts/list.json');
|
||||
},
|
||||
addAccount: ({ category, type, name, icon, currency, comment, subAccounts }) => {
|
||||
return axios.post('v1/accounts/add.json', {
|
||||
category,
|
||||
type,
|
||||
name,
|
||||
icon,
|
||||
currency,
|
||||
comment,
|
||||
subAccounts
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user