路径修改

master
fengtianyangyang 2022-01-20 17:21:30 +08:00
parent 1bee69cefb
commit 1c3d711298
12 changed files with 35 additions and 39 deletions

View File

@ -3,10 +3,10 @@ var BASE = {
* @description api请求基础路径
*/
API_DEV: {
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn"
seller: "http://127.0.0.1:8888",
manager: "http://127.0.0.1:8888"
buyer: "http://127.0.0.1:8888",
common: "http://127.0.0.1:8888",
},
API_PROD: {
common: "https://common-api.pickmall.cn",
@ -15,4 +15,3 @@ var BASE = {
manager: "https://admin-api.pickmall.cn"
},
};

View File

@ -44,7 +44,7 @@ export function goodsSkuDetail (params) {
// 获取所有商品分类
export function getCategory (parentId) {
return request({
url: `/buyer/category/get/${parentId}`,
url: `/buyer/goods/category/get/${parentId}`,
method: Method.GET,
needToken: false
});

View File

@ -301,7 +301,7 @@ export function clearComplain (id) {
*/
export function distribution () {
return request({
url: `/buyer/distribution`,
url: `/buyer/distribution/distribution`,
method: Method.GET,
needToken: true
});
@ -314,7 +314,7 @@ export function distribution () {
*/
export function applyDistribution (params) {
return request({
url: `/buyer/distribution`,
url: `/buyer/distribution/distribution`,
method: Method.POST,
needToken: true,
params
@ -326,7 +326,7 @@ export function applyDistribution (params) {
*/
export function getDistOrderList (params) {
return request({
url: `/buyer/distribution/distributionOrder`,
url: `/buyer/distribution/order`,
method: Method.GET,
needToken: true,
params
@ -338,7 +338,7 @@ export function getDistOrderList (params) {
*/
export function getDistGoodsList (params) {
return request({
url: `/buyer/distributionGoods`,
url: `/buyer/distribution/goods`,
method: Method.GET,
needToken: true,
params
@ -352,7 +352,7 @@ export function getDistGoodsList (params) {
*/
export function selectDistGoods (params) {
return request({
url: `/buyer/distributionGoods/checked/${params.distributionGoodsId}`,
url: `/buyer/distribution/goods/checked/${params.distributionGoodsId}`,
method: Method.GET,
needToken: true,
params

View File

@ -3,10 +3,8 @@ var BASE = {
* @description api请求基础路径
*/
API_DEV: {
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn"
common: "http://127.0.0.1:8888",
manager: "http://127.0.0.1:8888",
},
API_PROD: {
common: "https://common-api.pickmall.cn",
@ -27,4 +25,3 @@ var BASE = {
*/
PREFIX: "/manager"
};

View File

@ -12,10 +12,10 @@ export const getRegion = (params) => {
// 获取拼图验证
export const getVerifyImg = (verificationEnums) => {
return getRequestWithNoToken(`${commonUrl}/common/slider/${verificationEnums}`);
return getRequestWithNoToken(`${commonUrl}/common/common/slider/${verificationEnums}`);
};
// 拼图验证
export const postVerifyImg = (params) => {
return postRequestWithNoToken(`${commonUrl}/common/slider/${params.verificationEnums}`, params);
return postRequestWithNoToken(`${commonUrl}/common/common/slider/${params.verificationEnums}`, params);
};

View File

@ -4,21 +4,21 @@ import {getRequest, postRequest, putRequest, deleteRequest} from '@/libs/axios';
//查询分销商
export const getDistributionListData = (params) => {
return getRequest('/distribution/getByPage', params)
return getRequest('/distribution/distribution/getByPage', params)
}
//审核分销商
export const auditDistribution = (id, params) => {
return putRequest(`/distribution/audit/${id}`, params)
return putRequest(`/distribution/distribution/audit/${id}`, params)
}
// 清退分销商
export const retreatDistribution = (id, params) => {
return putRequest(`/distribution/retreat/${id}`, params)
return putRequest(`/distribution/distribution/retreat/${id}`, params)
}
// 恢复分销商
export const resumeDistribution = (id, params) => {
return putRequest(`/distribution/resume/${id}`, params)
return putRequest(`/distribution/distribution/resume/${id}`, params)
}
//保存更新分销设置

View File

@ -26,11 +26,11 @@ export const disableBrand = (id, params) => {
}
//根据分类id获取关联品牌
export const getCategoryBrandListData = (category_id, params) => {
return getRequest(`/category/brand/${category_id}`, params)
return getRequest(`/goods/category/brand/${category_id}`, params)
}
//保存获取关联品牌
export const saveCategoryBrand = (category_id, params) => {
return postRequest(`/category/brand/${category_id}`, params)
return postRequest(`/goods/category/brand/${category_id}`, params)
}
//保存获取关联规格
export const saveCategorySpec = (category_id, params) => {

View File

@ -48,7 +48,7 @@ export const getNoticePage = (params) => {
// 登陆
export const login = (params) => {
return postRequestWithNoTokenData("/user/login", params);
return postRequestWithNoTokenData("/passport/user/login", params);
};
// 登出
@ -62,7 +62,7 @@ export const handleRefreshToken = (token) => {
};
// 获取用户登录信息
export const userInfo = (params) => {
return getRequest("/user/info", params);
return getRequest("/passport/user/info", params);
};
// 注册
export const regist = (params) => {
@ -237,7 +237,7 @@ export const getAllPermissionList = (params) => {
// 获取全部权限数据
export const getCurrentPermissionList = (params) => {
return getRequest("/menu/memberMenu", params);
return getRequest("/permission/menu/memberMenu", params);
};
// 添加权限
@ -306,16 +306,16 @@ export const deleteMessageSend = (ids, params) => {
// 分页获取文件数据
export const getFileListData = (params) => {
return getRequest("/file", params);
return getRequest("/common/file", params);
};
// 重命名文件
export const renameFile = (params) => {
return postRequest("/file/rename", params);
return postRequest("/common/file/rename", params);
};
// 删除文件
export const deleteFile = (ids, params) => {
return deleteRequest(`/file/delete/${ids}`, params);
return deleteRequest(`/common/file/delete/${ids}`, params);
};
// 下载文件
export const aliDownloadFile = (fKey, params) => {

View File

@ -31,7 +31,7 @@ export const getHomeData = params => {
*/
export const getHomeList = params => {
return getRequest("/pageData/pageDataList", params);
return getRequest("/other/pageData/pageDataList", params);
};

View File

@ -4,10 +4,10 @@ import {commonUrl, getRequestWithNoToken, postRequestWithNoToken} from '@/libs/a
// 获取拼图验证
export const getVerifyImg = (verificationEnums) => {
return getRequestWithNoToken(`${commonUrl}/common/slider/${verificationEnums}`);
return getRequestWithNoToken(`${commonUrl}/common/common/slider/${verificationEnums}`);
};
// 拼图验证
export const postVerifyImg = (params) => {
return postRequestWithNoToken(`${commonUrl}/common/slider/${params.verificationEnums}`, params);
return postRequestWithNoToken(`${commonUrl}/common/common/slider/${params.verificationEnums}`, params);
};

View File

@ -5,17 +5,17 @@ import {getRequest, postRequest, putRequest, deleteRequest, importRequest, getRe
//获取分销商品列表
export const getDistributionGoods = (params) => {
return getRequest('/distributionGoods', params)
return getRequest('/distribution/goods', params)
}
// 取消分销商品
export const distributionGoodsCancel = (id) => {
return deleteRequest(`/distributionGoods/cancel/${id}`)
return deleteRequest(`/distribution/goods/cancel/${id}`)
}
// 选择分销商品
export const distributionGoodsCheck = (id,param) => {
return putRequest(`/distributionGoods/checked/${id}`,param)
return putRequest(`/distribution/goods/checked/${id}`,param)
}
@ -51,7 +51,7 @@ export const getDistributionSetting = (id, params) => {
//获取分销订单列表
export const getDistributionOrder = (params) => {
return getRequest('/distributionOrder', params)
return getRequest('/distribution/order', params)
}

View File

@ -311,7 +311,7 @@ export const result = [{
type: 0,
title: "分销商品",
path: "distributionGoods",
component: "distribution/distributionGoods",
component: "distribution/distribution/goods",
children: null
},
{
@ -320,7 +320,7 @@ export const result = [{
type: 0,
title: "分销订单",
path: "distributionOrder",
component: "distribution/distributionOrder",
component: "distribution/distribution/order",
children: null
}
]