orders list native with status filter + seller

This commit is contained in:
hamid zarghami
2025-09-24 12:03:26 +03:30
parent c0b6f1577c
commit edf6bcfc3d
11 changed files with 864 additions and 10 deletions
+22
View File
@@ -0,0 +1,22 @@
import axios from "../../../config/axios";
import type { NativeOrdersResponseType } from "../types/Types";
export const getNativeOrders = async (
page: number = 1,
status: string
): Promise<NativeOrdersResponseType> => {
const { data } = await axios.get("/admin/orders/native", {
params: { page, status },
});
return data;
};
export const getSellerOrders = async (
page: number = 1,
status: string
): Promise<NativeOrdersResponseType> => {
const { data } = await axios.get("/admin/orders/seller", {
params: { page, status },
});
return data;
};