support plan
This commit is contained in:
@@ -6,6 +6,11 @@ export const createPlan = async (plan: CreatePlanType) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const updatePlan = async (id: string, plan: CreatePlanType) => {
|
||||
const { data } = await axios.patch(`/support-plans/${id}`, plan);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getPlans = async () => {
|
||||
const { data } = await axios.get("/support-plans/list");
|
||||
return data;
|
||||
@@ -15,3 +20,8 @@ export const getPlanById = async (id: string) => {
|
||||
const { data } = await axios.get(`/support-plans/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const deletePlan = async (id: string) => {
|
||||
const { data } = await axios.delete(`/support-plans/${id}`);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user