1404/11/04- first

This commit is contained in:
2026-01-24 17:45:54 +03:30
commit edf1824229
554 changed files with 59581 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { AddId } from '@/model/customer'
import useAxios from '@core/utils/useAxios'
import type { last, Price } from "@/model/price";
import type { TableInput } from '@core/type/baseTable'
import type { MethodePrices } from "@/model/product";
export const createPrice = async (obj: Price) => await useAxios.post<AddId>(`/admin/price`, obj)
export const getPriceTable = async (params: TableInput) =>
await useAxios.post<Array<Price>>('/admin/price/table', params)
export const getLastPrice = async () => await useAxios.get<last>(`/api/price/last`)
export const methodePrices = async () => await useAxios.get<MethodePrices[]>('/admin/p')