1405/01/20-add giftcard & discount

This commit is contained in:
2026-04-09 13:40:54 +03:30
parent 668becae9d
commit 8833749f51
8 changed files with 1212 additions and 2 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)