test-iki-mini-app
Version:
ứng dựng bán hàng trên mini app z a l o
22 lines (20 loc) • 616 B
JavaScript
import { callApi } from "../api/index.jsx";
import { constants as c } from "../constants";
const getInfoAccount = () => {
return callApi(`/customer/${c.STORE_CODE}/profile`, "get");
};
const editInfoAccount = (form) => {
return callApi(`/customer/${c.STORE_CODE}/profile`, "put", form);
};
const changePassword = (form) => {
return callApi(`/customer/${c.STORE_CODE}/change_password`, "post", form);
};
const getUrlImage = (form) => {
return callApi(`/customer/${c.STORE_CODE}/images`, "post", form);
};
export const account = {
getInfoAccount,
editInfoAccount,
changePassword,
getUrlImage
};