fix logo, delete card

This commit is contained in:
2026-02-19 13:49:13 +03:30
parent b8c919d232
commit 984d9edde2
8 changed files with 52 additions and 25 deletions
+5
View File
@@ -1,6 +1,7 @@
import useAxios from '@/utils/useAxios'
import type { Card, Wallet } from '@/models/wallet'
import type {Transaction} from '@/models/transaction'
import type {Address} from "@/models/address";
export const getWallet = async () => await useAxios.get<Wallet>(`/customer/wallet/me`)
@@ -16,6 +17,10 @@ export const createCard = async (obj: Card): Promise<any> => {
return await useAxios.post<Transaction>(`/customer/account`, obj)
}
export async function deleteCard(id: number) {
return await useAxios.delete(`customer/account/${id}`)
}
export const getActivatedCards = async () => await useAxios.get<Card[]>(`/customer/account/active`)
export const confirmCode = async (params: WithdrawConfirm): Promise<any> => {