1405/02/14-add giftCards

This commit is contained in:
2026-05-04 16:22:10 +03:30
parent 4f1b5f5e85
commit 9c5d153fc0
6 changed files with 878 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { TableInput } from '@core/type/baseTable'
import useAxios from '@core/utils/useAxios'
import type { Order } from '@/model/order'
import type { AddId, Customer } from '@/model/customer'
import type {Giftcard, GiftcardInput} from "@/model/giftCard";
export const getGiftCardTable = async (params: TableInput) =>
await useAxios.post<Array<Giftcard>>('/admin/giftcard/table', params)
export const createGiftCard = async (obj: GiftcardInput) =>
await useAxios.post<Giftcard>(`/admin/giftcard/generate`, obj)