Files
manja_dev_ui/src/services/walletService.js
T
Wian Drs 03fe4b1fd4
NPM Installation / build (16.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (16.x, windows-latest) (push) Waiting to run
NPM Installation / build (17.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (17.x, windows-latest) (push) Waiting to run
NPM Installation / build (18.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (18.x, windows-latest) (push) Waiting to run
Giant Update
2026-07-31 13:57:55 +07:00

7 lines
442 B
JavaScript

import api from '@/api/axios'
export const getMyWallets = async () => (await api.get('/wallets')).data
export const getWalletLedger = async (id, params = {}) => (await api.get(`/wallets/${id}/ledger`, { params })).data
export const transferWallet = async (id, payload) => (await api.post(`/wallets/${id}/transfer`, payload)).data
export const withdrawWallet = async (id, payload) => (await api.post(`/wallets/${id}/withdraw`, payload)).data