create print form
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import axios from "@/config/axios";
|
||||
import type {
|
||||
CreatePrintFormType,
|
||||
CreateSectionType,
|
||||
SectionDetailResponseType,
|
||||
SectionsResponseType,
|
||||
@@ -31,3 +32,15 @@ export const deleteSection = async (id: number) => {
|
||||
const { data } = await axios.delete(`/admin/section/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const createPrintForm = async (
|
||||
orderId: string,
|
||||
itemId: number,
|
||||
params: CreatePrintFormType
|
||||
) => {
|
||||
const { data } = await axios.patch(
|
||||
`/admin/orders/${orderId}/item/${itemId}/print`,
|
||||
params
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user