update customer and update service category and ...

This commit is contained in:
hamid zarghami
2025-03-06 11:49:31 +03:30
parent 55e7cb6e77
commit 2fb3a64eb1
13 changed files with 600 additions and 29 deletions
+14 -1
View File
@@ -17,6 +17,19 @@ export const getCities = async (id: string) => {
};
export const createCustomer = async (params: CreateCustomerType) => {
const { data } = await axios.post(`/users/customer`, params);
const { data } = await axios.post(`/users/customers`, params);
return data;
};
export const getDetailCustomer = async (id: string) => {
const { data } = await axios.get(`/users/customers/${id}`);
return data;
};
export const updateCustomer = async (
id: string,
params: CreateCustomerType
) => {
const { data } = await axios.patch(`/users/customers/${id}`, params);
return data;
};