add:api接口封装

This commit is contained in:
talktao 2022-03-18 23:30:04 +08:00
parent 683e8e1df6
commit 6655c7cfba
2 changed files with 10 additions and 0 deletions

5
src/api/home.ts Normal file
View File

@ -0,0 +1,5 @@
import axiosInstance, { AxiosResponseProps } from '@/uitls/request'
export const getList = (params: any) => {
return axiosInstance.get("/common/code/logisticsInfo/getOrderByPhone", { params: params || {} });
}

5
src/api/orders.ts Normal file
View File

@ -0,0 +1,5 @@
import axiosInstance, { AxiosResponseProps } from '@/uitls/request'
export const getList = (params: any) => {
return axiosInstance.get("/common/code/logisticsInfo/getLogisticsByOrderId", { params: params || {} });
}