create print form

This commit is contained in:
hamid zarghami
2026-02-02 15:53:28 +03:30
parent 024cd19b82
commit 48136a9f15
6 changed files with 253 additions and 1 deletions
+13
View File
@@ -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;
};