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
7 lines
442 B
JavaScript
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
|