detail order

This commit is contained in:
hamid zarghami
2025-09-29 10:38:28 +03:30
parent d5cbee4b82
commit 09d0e0ce90
4 changed files with 286 additions and 14 deletions
+8 -3
View File
@@ -1,5 +1,8 @@
import axios from "../../../config/axios";
import type { NativeOrdersResponseType } from "../types/Types";
import type {
NativeOrdersResponseType,
OrderDetailResponseType,
} from "../types/Types";
export const getNativeOrders = async (
page: number = 1,
@@ -21,7 +24,9 @@ export const getSellerOrders = async (
return data;
};
export const getOrderDetailUser = async (id: string) => {
const { data } = await axios.get(`/order/${id}/user`);
export const getOrderDetailUser = async (
id: string
): Promise<OrderDetailResponseType> => {
const { data } = await axios.get(`/admin/orders/${id}/user`);
return data;
};