fix kashkool

This commit is contained in:
2026-06-29 22:43:28 +03:30
parent be17631109
commit 8b855e5ee4
150 changed files with 11974 additions and 4445 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ import type { PWallet, Wallet } from '@/models/wallet'
export const getProducts = async (): Promise<any> => {
return await useAxios.get<Product[]>(`/customer/product/list`)
return await useAxios.get<Product[]>(`/customer/product/list`, { timeout: 15000 })
}
export const getProductById = async ( id:number|null): Promise<any> => {
return await useAxios.get<Product[]>(`/customer/product/list/${id}`)
return await useAxios.get<Product[]>(`/customer/product/list/${id}`, { timeout: 15000 })
}
export const getProductInventory = async (): Promise<any> => {
return await useAxios.post<PInventory[]>(`/customer/wallet/product/table`)
+4
View File
@@ -1,9 +1,13 @@
import useAxios from '@/utils/useAxios'
import type { Card, Wallet } from '@/models/wallet'
import type { WalletAssetsSummary } from '@/models/walletAssets'
import type {Transaction} from '@/models/transaction'
export const getWallet = async () => await useAxios.get<Wallet>(`/customer/wallet/me`)
export const getWalletAssets = async () =>
await useAxios.get<WalletAssetsSummary>(`/customer/wallet/assets`)
export const withdraw = async (obj: Transaction): Promise<any> => {
return await useAxios.post<Transaction>(`/customer/wallet/withdraw`, obj)
}