update customer and update service category and ...
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user