detail order
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user