import useAxios from "@/utils/useAxios"; import type {PInventory, Product} from "@/models/products"; import type { PWallet, Wallet } from '@/models/wallet' export const getProducts = async (): Promise => { return await useAxios.get(`/customer/product/list`) } export const getProductById = async ( id:number|null): Promise => { return await useAxios.get(`/customer/product/list/${id}`) } export const getProductInventory = async (): Promise => { return await useAxios.post(`/customer/wallet/product/table`) } export const getOneProductWallet = async (id: number): Promise => { return await useAxios.get(`/customer/wallet/product/${id}`) }