create support plan

This commit is contained in:
hamid zarghami
2025-05-05 12:27:23 +03:30
parent a72e8a5b9d
commit fbb7f409ab
12 changed files with 370 additions and 3 deletions
@@ -0,0 +1,17 @@
import axios from "../../../config/axios";
import { CreatePlanType } from "../types/SupportTypes";
export const createPlan = async (plan: CreatePlanType) => {
const { data } = await axios.post("/support-plans", plan);
return data;
};
export const getPlans = async () => {
const { data } = await axios.get("/support-plans/list");
return data;
};
export const getPlanById = async (id: string) => {
const { data } = await axios.get(`/support-plans/${id}`);
return data;
};