mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
support hiding/unhiding/deleting sub-account in account list page
This commit is contained in:
@@ -360,6 +360,9 @@ export default {
|
||||
deleteAccount: (req: AccountDeleteRequest): ApiResponsePromise<boolean> => {
|
||||
return axios.post<ApiResponse<boolean>>('v1/accounts/delete.json', req);
|
||||
},
|
||||
deleteSubAccount: (req: AccountDeleteRequest): ApiResponsePromise<boolean> => {
|
||||
return axios.post<ApiResponse<boolean>>('v1/accounts/sub_account/delete.json', req);
|
||||
},
|
||||
getTransactions: (req: TransactionListByMaxTimeRequest): ApiResponsePromise<TransactionInfoPageWrapperResponse> => {
|
||||
const amountFilter = encodeURIComponent(req.amountFilter);
|
||||
const keyword = encodeURIComponent(req.keyword);
|
||||
|
||||
Reference in New Issue
Block a user