first commit

This commit is contained in:
2026-05-23 13:22:10 +03:30
parent 5f9ee72174
commit 6591a52f27
52 changed files with 3937 additions and 133 deletions

View File

@@ -0,0 +1,17 @@
import callAPI from "../caller/config";
export async function createTicket(data: any) {
return await callAPI.post("/ticket/create", data).then((res) => res.data);
}
export async function getAllTickets(params: any) {
return await callAPI.get("/ticket/all", { params }).then((res) => res.data);
}
export async function removeTicket(id: string) {
return await callAPI.delete(`/ticket/remove/${id}`).then((res) => res.data);
}
export async function getAllTicketsExport(params: any) {
return await callAPI.get("/ticket/all/export", { params }).then((res) => res.data);
}