sms count

This commit is contained in:
hamid zarghami
2025-12-29 16:21:00 +03:30
parent 8bdd838ddc
commit deda1f1603
10 changed files with 229 additions and 10 deletions
+15
View File
@@ -6,6 +6,7 @@ import {
IconsResponse,
ReportsResponse,
RestaurantsResponse,
RestaurantSmsCountResponse,
} from "../types/Types";
export const getIcons = async (): Promise<IconsResponse> => {
@@ -47,3 +48,17 @@ export const getRestaurants = async (): Promise<RestaurantsResponse> => {
const { data } = await axios.get("/admin/dmenu/restaurants");
return data;
};
export const getRestaurantAdmins = async (restaurantId: string) => {
const { data } = await axios.get(
`/admin/dmenu/restaurants/${restaurantId}/admins`
);
return data;
};
export const getRestaurantSmsCount = async (): Promise<
RestaurantSmsCountResponse
> => {
const { data } = await axios.get(`/admin/dmenu/restaurants/sms-count`);
return data;
};