路径修改

This commit is contained in:
fengtianyangyang
2022-01-25 12:01:40 +08:00
parent f46330ecf0
commit e5918b041a
8 changed files with 46 additions and 46 deletions

View File

@@ -12,23 +12,23 @@ import {
// 分页获取物流公司
export const getLogisticsPage = params => {
return getRequest(`/logistics/getByPage`, params);
return getRequest(`/other/logistics/getByPage`, params);
};
// 删除
export const delLogistics = id => {
return deleteRequest(`/logistics/delete/${id}`);
return deleteRequest(`/other/logistics/delete/${id}`);
};
// 添加
export const addLogistics = params => {
return postRequest(`/logistics/save`,params);
return postRequest(`/other/logistics/save`,params);
};
// 通过id查询详情
export const getLogisticsDetail = id => {
return getRequest(`/logistics/get/${id}`);
return getRequest(`/other/logistics/get/${id}`);
};
// 编辑
export const updateLogistics = (id,params) => {
return putRequest(`/logistics/${id}`,params);
return putRequest(`/other/logistics/${id}`,params);
};

View File

@@ -79,7 +79,7 @@ export const orderDelivery = (sn, params) => {
// 获取商家选中的物流公司
export const getLogisticsChecked = () => {
return getRequest(`/logistics/getChecked`);
return getRequest(`/other/logistics/getChecked`);
};
// 订单核验

View File

@@ -39,17 +39,17 @@ export const getBillDetail = (id, params) => {
// 获取所有物流公司
export const getLogistics = (id, params) => {
return getRequest(`/logistics`, params)
return getRequest(`/other/logistics`, params)
}
// 开启物流公司
export const logisticsChecked = (id, params) => {
return postRequest(`/logistics/${id}`, params)
return postRequest(`/other/logistics/${id}`, params)
}
// 关闭开启物流公司
export const logisticsUnChecked = (id, params) => {
return deleteRequest(`/logistics/${id}`, params)
return deleteRequest(`/other/logistics/${id}`, params)
}
// 获取商家自提点
export const getShopAddress = (id, params) => {