setting shop

This commit is contained in:
hamid zarghami
2025-10-01 09:24:22 +03:30
parent ab5c7cc3c3
commit de7727d5bc
7 changed files with 240 additions and 1 deletions
@@ -9,6 +9,8 @@ import type {
FaqDetailResponse,
FaqResponse,
PricingResponse,
ShopResponse,
UpdateShopType,
UpdateSiteSetting,
} from "../types/Types";
import { FaqPageEnum, SiteSettingPageEnum } from "../enum/Enum";
@@ -103,3 +105,13 @@ export const deletePricing = async (id: string) => {
const { data } = await axios.delete(`/admin/financial/pricing/${id}`);
return data;
};
export const getShop = async (): Promise<ShopResponse> => {
const { data } = await axios.get(`/admin/shop`);
return data;
};
export const updateShop = async (params: UpdateShopType) => {
const { data } = await axios.patch(`/admin/shop`, params);
return data;
};