changes of giftCard page
This commit is contained in:
@@ -10,5 +10,10 @@ export const getGiftCardTable = async (params: TableInput) =>
|
||||
export const createGiftCard = async (obj: GiftcardInput) =>
|
||||
await useAxios.post<Giftcard>(`/admin/giftcard/generate`, obj)
|
||||
|
||||
export const updateGiftCard = async (id: number, obj: GiftcardInput) =>
|
||||
await useAxios.put<Giftcard>(`/admin/giftcard/${id}`, obj)
|
||||
|
||||
export const deleteGiftCard = async (id: number) => await useAxios.delete(`/admin/giftcard/${id}`)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user