diff --git a/buyer/src/api/order.js b/buyer/src/api/order.js index d04f48fa..58d74a02 100644 --- a/buyer/src/api/order.js +++ b/buyer/src/api/order.js @@ -109,7 +109,7 @@ export function afterSaleDelivery (params) { // 获取退货可选物流公司 export function getLogisticsCompany () { return request({ - url: `/buyer/logistics`, + url: `/buyer/other/logistics`, method: Method.GET, needToken: true, params: { pageNumber: 1, pageSize: 200, disabled: 'OPEN' } diff --git a/manager/src/api/index.js b/manager/src/api/index.js index a04802de..629b0787 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -263,15 +263,15 @@ export const searchPermission = (params) => { // 分页获取日志数据 export const getLogListData = (params) => { - return getRequest("/log/getAllByPage", params); + return getRequest("/setting/log/getAllByPage", params); }; // 删除日志 export const deleteLog = (ids, params) => { - return deleteRequest(`/log/${ids}`, params); + return deleteRequest(`/setting/log/${ids}`, params); }; // 清空日志 export const deleteAllLog = (params) => { - return deleteRequest("/log", params); + return deleteRequest("/setting/log", params); }; @@ -339,22 +339,22 @@ export const setSetting = (key, params) => { // 分页查询敏感词 export const getSensitiveWordsPage = (params) => { - return getRequest(`/sensitiveWords`, params); + return getRequest(`/other/sensitiveWords`, params); }; // 分页查询敏感词 export const insertSensitiveWords = (params) => { - return postRequest(`/sensitiveWords`, params); + return postRequest(`/other/sensitiveWords`, params); }; // 修改 export const updateSensitiveWords = (id, params) => { - return putRequest(`/sensitiveWords/${id}`, params); + return putRequest(`/other/sensitiveWords/${id}`, params); }; // 删除敏感词 export const delSensitive = (ids) => { - return deleteRequest(`/sensitiveWords/delByIds/${ids}`); + return deleteRequest(`/other/sensitiveWords/delByIds/${ids}`); }; // 添加商品计量单位 @@ -376,26 +376,26 @@ export const delGoodsUnit = (ids) => { // 同步高德行政地区数据 export const asyncRegion = () => { - return postRequest(`/region/sync`); + return postRequest(`/setting/region/sync`); }; // 批量id删除 export const delRegion = (ids) => { - return deleteRequest(`/region/${ids}`); + return deleteRequest(`/setting/region/${ids}`); }; // 更新地区 export const updateRegion = (id, params) => { - return putRequest(`/region/${id}`, params); + return putRequest(`/setting/region/${id}`, params); }; // 添加地区 export const addRegion = (params) => { - return postRequest(`/region`, params); + return postRequest(`/setting/region`, params); }; // 通过id获取子地区 export const getChildRegion = (id) => { - return getRequest(`/region/item/${id}`); + return getRequest(`/setting/region/item/${id}`); }; // 重置用户密码 diff --git a/manager/src/api/logistics.js b/manager/src/api/logistics.js index da8561d8..4f09d2c1 100644 --- a/manager/src/api/logistics.js +++ b/manager/src/api/logistics.js @@ -10,23 +10,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); }; diff --git a/manager/src/api/order.js b/manager/src/api/order.js index 7e18feb2..11a06389 100644 --- a/manager/src/api/order.js +++ b/manager/src/api/order.js @@ -123,7 +123,7 @@ export const getAfterSaleTraces = (sn) => { } // 获取商家选中的物流公司 export const getLogisticsChecked = () => { - return getRequest(`/logistics/getChecked`) + return getRequest(`/other/logistics/getChecked`) } //查询物流 diff --git a/manager/src/api/setting.js b/manager/src/api/setting.js index bc50bdce..c77facfd 100644 --- a/manager/src/api/setting.js +++ b/manager/src/api/setting.js @@ -20,37 +20,37 @@ export const editNoticeMessage = (id, params) => { //微信消息同步 export const wechatMessageSync = (params) => { - return getRequest("/message/wechat/init", params) + return getRequest("/wechat/wechatMessage/init", params) } //分页获取微信消息 export const getWechatMessagePage = (params) => { - return getRequest("/message/wechat", params) + return getRequest("/wechat/wechatMessage", params) } //编辑微信消息模版 export const editWechatMessageTemplate = (id, params) => { - return putRequest(`/message/wechat/${id}`, params) + return putRequest(`/wechat/wechatMessage/${id}`, params) } //删除微信消息模版 export const delWechatMessageTemplate = (id, params) => { - return deleteRequest(`/message/wechat/${id}`, params) + return deleteRequest(`/wechat/wechatMessage/${id}`, params) } //微信消息订阅同步 export const wechatMPMessageSync = (params) => { - return getRequest("/message/wechatMPMessage/init", params) + return getRequest("/wechat/wechatMPMessage/init", params) } //分页获取微信消息订阅 export const getWechatMPMessagePage = (params) => { - return getRequest("/message/wechatMPMessage", params) + return getRequest("/wechat/wechatMPMessage", params) } //编辑微信消息订阅模版 export const editWechatMPMessageTemplate = (id, params) => { - return putRequest(`/message/wechatMPMessage/${id}`, params) + return putRequest(`/wechat/wechatMPMessage/${id}`, params) } //删除微信消息订阅模版 export const delWechatMPMessageTemplate = (id, params) => { - return deleteRequest(`/message/wechatMPMessage/${id}`, params) + return deleteRequest(`/wechat/wechatMPMessage/${id}`, params) } @@ -118,19 +118,19 @@ export const smsSignDetail = (id) => { //分页查询app版本信息 export const appVersionPage = (params) => { - return getRequest(`systems/app/version`, params); + return getRequest(`/other/appVersion`, params); }; //添加app版本信息 export const addVersion = (params) => { - return postRequest(`systems/app/version`, params); + return postRequest(`/other/appVersion`, params); }; //修改app版本信息 export const editVersion = (params, id) => { - return putRequest(`systems/app/version/${id}`, params); + return putRequest(`/other/appVersion/${id}`, params); }; //删除app版本信息 export const deleteVersion = (id) => { - return deleteRequest(`systems/app/version/${id}`); + return deleteRequest(`/other/appVersion/${id}`); }; //查询同城配送列表 export const getInstantDelivery = (params) => { @@ -164,32 +164,32 @@ export const sendSms = (params) => { * 获取 支付支持设置开关 */ export const getPaymentSupportForm = () => { - return getRequest(`system/settingx/paymentSupport`); + return getRequest(`setting/settingx/paymentSupport`); } // 验证码源文件删除 export const delVerification = (id) => { - return deleteRequest(`/verificationSource/${id}`) + return deleteRequest(`/other/verificationSource/${id}`) } // 添加验证码源文件 export const addVerification = (params) => { - return postRequest(`/verificationSource`, params) + return postRequest(`/other/verificationSource`, params) } // 修改验证码源文件 export const editVerification = (id, params) => { - return putRequest(`/verificationSource/${id}`, params) + return putRequest(`/other/verificationSource/${id}`, params) } // 验证码源文件详情 export const verificationDetail = (id) => { - return getRequest(`/verificationSource/${id}`) + return getRequest(`/other/verificationSource/${id}`) } // 验证码源文件列表 export const verificationPage = (params) => { - return getRequest(`/verificationSource`, params) + return getRequest(`/other/verificationSource`, params) } //获取通知类站内信 diff --git a/seller/src/api/logistics.js b/seller/src/api/logistics.js index e08c989d..1d4d7ebf 100644 --- a/seller/src/api/logistics.js +++ b/seller/src/api/logistics.js @@ -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); }; diff --git a/seller/src/api/order.js b/seller/src/api/order.js index 9f6cd7bf..674fe00f 100644 --- a/seller/src/api/order.js +++ b/seller/src/api/order.js @@ -79,7 +79,7 @@ export const orderDelivery = (sn, params) => { // 获取商家选中的物流公司 export const getLogisticsChecked = () => { - return getRequest(`/logistics/getChecked`); + return getRequest(`/other/logistics/getChecked`); }; // 订单核验 diff --git a/seller/src/api/shops.js b/seller/src/api/shops.js index edf8321e..eb6bb46e 100644 --- a/seller/src/api/shops.js +++ b/seller/src/api/shops.js @@ -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) => {