Merge branch 'fengtianyangyang' of gitee.com:beijing_hongye_huicheng/lilishop-ui into fengtianyangyang
commit
f46330ecf0
|
@ -22,7 +22,7 @@ export function getDepositLog (params) {
|
|||
// 查询充值记录
|
||||
export function getRecharge (params) {
|
||||
return request({
|
||||
url: '/buyer/member/recharge',
|
||||
url: '/buyer/wallet/recharge',
|
||||
method: Method.GET,
|
||||
needToken: true,
|
||||
params
|
||||
|
|
|
@ -102,30 +102,30 @@ export const getGoodsCategory = (parent_id) => {
|
|||
|
||||
// 上架商品
|
||||
export const upGoods = (id, params) => {
|
||||
return putRequest(`/goods/${id}/up`, params)
|
||||
return putRequest(`/goods/goods/${id}/up`, params)
|
||||
}
|
||||
// 下架商品
|
||||
export const lowGoods = (id, params) => {
|
||||
return putRequest(`/goods/${id}/under`, params)
|
||||
return putRequest(`/goods/goods/${id}/under`, params)
|
||||
}
|
||||
|
||||
// 获取商品sku分页列表
|
||||
export const getGoodsSkuData = (params) => {
|
||||
return getRequest('/goods/sku/list', params)
|
||||
return getRequest('/goods/goods/sku/list', params)
|
||||
}
|
||||
|
||||
|
||||
// 获取商品分页列表
|
||||
export const getGoodsListData = (params) => {
|
||||
return getRequest('/goods/list', params)
|
||||
return getRequest('/goods/goods/list', params)
|
||||
}
|
||||
// 获取待审核商品分页列表
|
||||
export const getAuthGoodsListData = (params) => {
|
||||
return getRequest('/goods/auth/list', params)
|
||||
return getRequest('/goods/goods/auth/list', params)
|
||||
}
|
||||
// 审核商品
|
||||
export const authGoods = (id, params) => {
|
||||
return putRequest(`/goods/${id}/auth`, params)
|
||||
return putRequest(`/goods/goods/${id}/auth`, params)
|
||||
}
|
||||
|
||||
//查询分类绑定参数信息
|
||||
|
@ -176,7 +176,7 @@ export const getSkuPage = (params) => {
|
|||
|
||||
//查看商品详情
|
||||
export const getGoodsDetail = (id) => {
|
||||
return getRequest(`/goods/get/${id}`)
|
||||
return getRequest(`/goods/goods/get/${id}`)
|
||||
}
|
||||
|
||||
|
||||
|
@ -225,4 +225,3 @@ export const refundStatistics = (params) => {
|
|||
export const refundPriceStatistics = (params) => {
|
||||
return getRequest(`/statistics/refund/order/getPrice`, params)
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
let commonUrl = (process.env.NODE_ENV === 'development' ? BASE.API_DEV.common : BASE.API_PROD.common)
|
||||
|
||||
// 文件上传接口
|
||||
export const uploadFile = commonUrl+ "/common/upload/file";
|
||||
export const uploadFile = commonUrl+ "/common/common/upload/file";
|
||||
// Websocket
|
||||
export const ws = managerUrl + "/ws";
|
||||
|
||||
|
@ -99,131 +99,131 @@ export const ipInfo = (params) => {
|
|||
};
|
||||
// 个人中心编辑
|
||||
export const userInfoEdit = (params) => {
|
||||
return putRequest("/user/edit", params);
|
||||
return putRequest("/passport/user/edit", params);
|
||||
};
|
||||
// 个人中心修改密码
|
||||
export const changePass = (params) => {
|
||||
return putRequest("/user/editPassword", params);
|
||||
return putRequest("/passport/user/editPassword", params);
|
||||
};
|
||||
// 个人中心修改手机
|
||||
export const changeMobile = (params) => {
|
||||
return postRequest("/user/changeMobile", params);
|
||||
return postRequest("/passport/user/changeMobile", params);
|
||||
};
|
||||
// 获取用户数据 多条件
|
||||
export const getUserListData = (params) => {
|
||||
return getRequest("/user", params);
|
||||
return getRequest("/passport/user", params);
|
||||
};
|
||||
// 通过用户名搜索
|
||||
export const searchUserByName = (username, params) => {
|
||||
return getRequest("/user/searchByName/" + username, params);
|
||||
return getRequest("/passport/user/searchByName/" + username, params);
|
||||
};
|
||||
// 获取全部用户数据
|
||||
export const getAllUserData = (params) => {
|
||||
return getRequest("/user/getAll", params);
|
||||
return getRequest("/passport/user/getAll", params);
|
||||
};
|
||||
|
||||
// 添加用户
|
||||
export const addUser = (params) => {
|
||||
return postRequest("/user", params);
|
||||
return postRequest("/passport/user", params);
|
||||
};
|
||||
// 编辑管理员自身
|
||||
export const editUser = (params) => {
|
||||
return putRequest("/user/edit", params);
|
||||
return putRequest("/passport/user/edit", params);
|
||||
};
|
||||
// 编辑用户
|
||||
export const editOtherUser = (params) => {
|
||||
return putRequest("/user/admin/edit", params);
|
||||
return putRequest("/passport/user/admin/edit", params);
|
||||
};
|
||||
// 启用用户
|
||||
export const enableUser = (id, params) => {
|
||||
return putRequest(`/user/enable/${id}`, params);
|
||||
return putRequest(`/passport/user/enable/${id}`, params);
|
||||
};
|
||||
// 删除用户
|
||||
export const deleteUser = (ids, params) => {
|
||||
return deleteRequest(`/user/${ids}`, params);
|
||||
return deleteRequest(`/passport/user/${ids}`, params);
|
||||
};
|
||||
// 导入用户
|
||||
export const importUserData = (params) => {
|
||||
return importRequest("/user/importData", params);
|
||||
return importRequest("/passport/user/importData", params);
|
||||
};
|
||||
/****************************** 部门 */
|
||||
// 通过部门获取全部角色数据
|
||||
export const getUserByDepartmentId = (id, params) => {
|
||||
return getRequest(`/departmentRole/${id}`, params);
|
||||
return getRequest(`/permission/departmentRole/${id}`, params);
|
||||
};
|
||||
|
||||
// 通过部门修改绑定角色
|
||||
export const updateDepartmentRole = (id, params) => {
|
||||
return putRequestWithNoForm(`/departmentRole/${id}`, params);
|
||||
return putRequestWithNoForm(`/permission/departmentRole/${id}`, params);
|
||||
};
|
||||
|
||||
// 获取一级部门
|
||||
export const initDepartment = (params) => {
|
||||
return getRequest("/department", params);
|
||||
return getRequest("/permission/department", params);
|
||||
};
|
||||
// 加载部门子级数据
|
||||
export const loadDepartment = (id) => {
|
||||
return getRequest(`/department/${id}`);
|
||||
return getRequest(`/permission/department/${id}`);
|
||||
};
|
||||
// 添加部门
|
||||
export const addDepartment = (params) => {
|
||||
return postRequest("/department", params);
|
||||
return postRequest("/permission/department", params);
|
||||
};
|
||||
// 编辑部门
|
||||
export const editDepartment = (ids, params) => {
|
||||
return putRequest(`/department/${ids} `, params);
|
||||
return putRequest(`/permission/department/${ids} `, params);
|
||||
};
|
||||
// 删除部门
|
||||
export const deleteDepartment = (ids, params) => {
|
||||
return deleteRequest(`/department/${ids}`, params);
|
||||
return deleteRequest(`/permission/department/${ids}`, params);
|
||||
};
|
||||
// 搜索部门
|
||||
export const searchDepartment = (params) => {
|
||||
return getRequest("/department/search", params);
|
||||
return getRequest("/permission/department/search", params);
|
||||
};
|
||||
|
||||
/****************************** 部门结束 */
|
||||
|
||||
// 获取全部角色数据
|
||||
export const getAllRoleList = (params) => {
|
||||
return getRequest("/role", params);
|
||||
return getRequest("/permission/role", params);
|
||||
};
|
||||
// 分页获取角色数据
|
||||
export const getRoleList = (params) => {
|
||||
return getRequest("/role", params);
|
||||
return getRequest("/permission/role", params);
|
||||
};
|
||||
|
||||
// 添加角色
|
||||
export const addRole = (params) => {
|
||||
return postRequest("/role", params);
|
||||
return postRequest("/permission/role", params);
|
||||
};
|
||||
|
||||
// 编辑角色
|
||||
export const editRole = (params) => {
|
||||
return putRequest(`/role/${params.roleId}`, params);
|
||||
return putRequest(`/permission/role/${params.roleId}`, params);
|
||||
};
|
||||
|
||||
// 查看某角色拥有的菜单
|
||||
export const selectRoleMenu = (params) => {
|
||||
return getRequest(`/roleMenu/${params}`);
|
||||
return getRequest(`/permission/roleMenu/${params}`);
|
||||
};
|
||||
|
||||
// 保存角色菜单
|
||||
export const saveRoleMenu = (id, params) => {
|
||||
return postRequestWithNoForm(`/roleMenu/${id}`, params);
|
||||
return postRequestWithNoForm(`/permission/roleMenu/${id}`, params);
|
||||
};
|
||||
|
||||
// 分配角色权限
|
||||
export const editRolePerm = (params) => {
|
||||
return postRequest("/role/editRolePerm", params);
|
||||
return postRequest("/permission/role/editRolePerm", params);
|
||||
};
|
||||
// 分配角色数据权限
|
||||
export const editRoleDep = (params) => {
|
||||
return postRequest("/role/editRoleDep", params);
|
||||
return postRequest("/permission/role/editRoleDep", params);
|
||||
};
|
||||
// 删除角色
|
||||
export const deleteRole = (ids, params) => {
|
||||
return deleteRequest(`/role/${ids}`, params);
|
||||
return deleteRequest(`/permission/role/${ids}`, params);
|
||||
};
|
||||
|
||||
/****************************** 角色结束 */
|
||||
|
@ -232,7 +232,7 @@ export const deleteRole = (ids, params) => {
|
|||
/****************************** 权限 */
|
||||
// 获取全部权限数据
|
||||
export const getAllPermissionList = (params) => {
|
||||
return getRequest("/menu/tree", params);
|
||||
return getRequest("/permission/menu/tree", params);
|
||||
};
|
||||
|
||||
// 获取全部权限数据
|
||||
|
@ -242,20 +242,20 @@ export const getCurrentPermissionList = (params) => {
|
|||
|
||||
// 添加权限
|
||||
export const addPermission = (params) => {
|
||||
return postRequest("/menu", params);
|
||||
return postRequest("/permission/menu", params);
|
||||
};
|
||||
|
||||
// 编辑权限
|
||||
export const editPermission = (params) => {
|
||||
return putRequest(`/menu/${params.id}`, params);
|
||||
return putRequest(`/permission/menu/${params.id}`, params);
|
||||
};
|
||||
// 删除权限
|
||||
export const deletePermission = (ids, params) => {
|
||||
return deleteRequest(`/menu/${ids}`, params);
|
||||
return deleteRequest(`/permission/menu/${ids}`, params);
|
||||
};
|
||||
// 搜索权限
|
||||
export const searchPermission = (params) => {
|
||||
return getRequest("/menu", params);
|
||||
return getRequest("/permission/menu", params);
|
||||
};
|
||||
|
||||
/****************************** 权限结束 */
|
||||
|
@ -311,11 +311,11 @@ export const getFileListData = (params) => {
|
|||
|
||||
// 重命名文件
|
||||
export const renameFile = (params) => {
|
||||
return postRequest("/common/file/rename", params);
|
||||
return postRequest("/common/common/file/rename", params);
|
||||
};
|
||||
// 删除文件
|
||||
export const deleteFile = (ids, params) => {
|
||||
return deleteRequest(`/common/file/delete/${ids}`, params);
|
||||
return deleteRequest(`/common/common/file/delete/${ids}`, params);
|
||||
};
|
||||
// 下载文件
|
||||
export const aliDownloadFile = (fKey, params) => {
|
||||
|
@ -324,16 +324,16 @@ export const aliDownloadFile = (fKey, params) => {
|
|||
|
||||
// base64上传
|
||||
export const base64Upload = (params) => {
|
||||
return postRequest("/upload/file", params);
|
||||
return postRequest("/common/common/upload/file", params);
|
||||
};
|
||||
|
||||
// 系统设置
|
||||
export const getSetting = (key) => {
|
||||
return getRequest(`/system/setting/get/${key}`);
|
||||
return getRequest(`/setting/setting/get/${key}`);
|
||||
};
|
||||
// 更新系统配置
|
||||
export const setSetting = (key, params) => {
|
||||
return putRequestWithNoForm(`/system/setting/put/${key}`, params);
|
||||
return putRequestWithNoForm(`/setting/setting/put/${key}`, params);
|
||||
};
|
||||
|
||||
// 分页查询敏感词
|
||||
|
@ -400,7 +400,7 @@ export const getChildRegion = (id) => {
|
|||
|
||||
// 重置用户密码
|
||||
export const resetPassword = (params) => {
|
||||
return postRequest(`/user/resetPassword/${params}"`);
|
||||
return postRequest(`/passport/user/resetPassword/${params}"`);
|
||||
};
|
||||
|
||||
// 初始化商品索引
|
||||
|
@ -415,36 +415,35 @@ export const getProgress = () => {
|
|||
|
||||
// 分页查询自定义分词
|
||||
export const getCustomWordsPage = (params) => {
|
||||
return getRequest(`/custom-words/page`, params);
|
||||
return getRequest(`/other/customWords/page`, params);
|
||||
};
|
||||
|
||||
// 添加自定义分词
|
||||
export const insertCustomWords = (params) => {
|
||||
return postRequest(`/custom-words`, params);
|
||||
return postRequest(`/other/customWords`, params);
|
||||
};
|
||||
|
||||
// 修改自定义分词
|
||||
export const updateCustomWords = (params) => {
|
||||
return putRequest(`/custom-words`, params);
|
||||
return putRequest(`/other/customWords`, params);
|
||||
};
|
||||
|
||||
// 删除自定义分词
|
||||
export const delCustom = (id) => {
|
||||
return deleteRequest(`/custom-words/${id}`);
|
||||
return deleteRequest(`/other/customWords/${id}`);
|
||||
};
|
||||
|
||||
// 设置热搜词
|
||||
export const setHotWords = (params) => {
|
||||
return postRequest(`/hotwords`, params);
|
||||
return postRequest(`/hotwords/hotwords`, params);
|
||||
};
|
||||
|
||||
// 删除热搜词
|
||||
export const deleteHotWords = (words) => {
|
||||
return deleteRequest(`/hotwords/${words}`);
|
||||
return deleteRequest(`/hotwords/hotwords/${words}`);
|
||||
};
|
||||
|
||||
// 获取热搜词
|
||||
export const getHotWords = () => {
|
||||
return getRequest(`/hotwords`);
|
||||
return getRequest(`/hotwords/hotwords`);
|
||||
};
|
||||
|
||||
|
|
|
@ -9,22 +9,22 @@ export const getMember = params => {
|
|||
|
||||
// 分页获取会员评价
|
||||
export const getMemberReview = params => {
|
||||
return getRequest("/memberEvaluation/getByPage", params);
|
||||
return getRequest("/member/evaluation/getByPage", params);
|
||||
};
|
||||
|
||||
// 获取id
|
||||
export const getMemberInfoReview = id => {
|
||||
return getRequest(`/memberEvaluation/get/${id}`);
|
||||
return getRequest(`/member/evaluation/get/${id}`);
|
||||
};
|
||||
|
||||
|
||||
// 删除评论
|
||||
export const delMemberReview = id => {
|
||||
return putRequest(`/memberEvaluation/delete/${id}`);
|
||||
return putRequest(`/member/evaluation/delete/${id}`);
|
||||
};
|
||||
// 修改评价状态
|
||||
export const updateMemberReview = (id, params) => {
|
||||
return getRequest(`/memberEvaluation/updateStatus/${id}`, params);
|
||||
return getRequest(`/member/evaluation/updateStatus/${id}`, params);
|
||||
};
|
||||
|
||||
|
||||
|
@ -35,12 +35,12 @@ export const insertOrUpdateSpec = params => {
|
|||
|
||||
// 获取会员列表
|
||||
export const getMemberListData = params => {
|
||||
return getRequest("/member", params);
|
||||
return getRequest("/member/passport", params);
|
||||
};
|
||||
|
||||
// 获取会员详情
|
||||
export const getMemberInfoData = (id) => {
|
||||
return getRequest(`/member/${id}`);
|
||||
return getRequest(`/member/passport/${id}`);
|
||||
};
|
||||
|
||||
// 修改会员基本信息
|
||||
|
@ -50,26 +50,26 @@ export const updateMember = (params) => {
|
|||
|
||||
// 添加会员基本信息
|
||||
export const addMember = params => {
|
||||
return postRequest(`/member`, params);
|
||||
return postRequest(`/member/passport`, params);
|
||||
};
|
||||
|
||||
// 获取会员列表
|
||||
export const getMemberAll = () => {
|
||||
return getRequest("/member/getAll");
|
||||
return getRequest("/member/passport/getAll");
|
||||
};
|
||||
|
||||
// 增加或修改会员列表
|
||||
export const operationMemberListData = params => {
|
||||
return postRequest("/member/insertOrUpdate", params);
|
||||
return postRequest("/member/passport/insertOrUpdate", params);
|
||||
};
|
||||
|
||||
// 增加或修改会员列表
|
||||
export const deleteMemberListData = ids => {
|
||||
return deleteRequest(`/member/delByIds/${ids}`);
|
||||
return deleteRequest(`/member/passport/delByIds/${ids}`);
|
||||
};
|
||||
// 获取充值记录列表数据
|
||||
export const getUserRecharge = params => {
|
||||
return getRequest("/recharge", params);
|
||||
return getRequest("/wallet/recharge", params);
|
||||
};
|
||||
|
||||
// 获取预存款明细列表数据
|
||||
|
@ -79,17 +79,17 @@ export const getUserWallet = params => {
|
|||
|
||||
// 获取提现申请列表数据
|
||||
export const getUserWithdrawApply = params => {
|
||||
return getRequest("/members/withdraw-apply", params);
|
||||
return getRequest("/wallet/withdrawApply", params);
|
||||
};
|
||||
|
||||
// 审核提现申请
|
||||
export const withdrawApply = params => {
|
||||
return postRequest("/members/withdraw-apply", params);
|
||||
return postRequest("/wallet/withdrawApply", params);
|
||||
};
|
||||
|
||||
//会员状态修改
|
||||
export const updateMemberStatus = params => {
|
||||
return putRequest("/member/updateMemberStatus", params);
|
||||
return putRequest("/passport/member/updateMemberStatus", params);
|
||||
};
|
||||
|
||||
// 获取会员注册统计列表
|
||||
|
@ -110,7 +110,7 @@ export const historyMemberChartList = () => {
|
|||
|
||||
//查询会员数量
|
||||
export const getMemberNum = params => {
|
||||
return getRequest("/member/num", params);
|
||||
return getRequest("/member/passport/num", params);
|
||||
};
|
||||
//查询会员历史积分
|
||||
export const getHistoryPointData = (params) => {
|
||||
|
|
|
@ -9,88 +9,88 @@ import {
|
|||
|
||||
// 交由商家申诉
|
||||
export const storeComplain = (params) => {
|
||||
return putRequest(`/complain/status`, params)
|
||||
return putRequest(`/order/complain/status`, params)
|
||||
}
|
||||
|
||||
|
||||
// 获取售后原因分页列表
|
||||
export const getAfterSaleReasonPage = (params) => {
|
||||
return getRequest('/afterSaleReason/getByPage', params)
|
||||
return getRequest('/order/afterSaleReason/getByPage', params)
|
||||
}
|
||||
|
||||
// 删除售后原因
|
||||
export const delAfterSaleReason = (id) => {
|
||||
return deleteRequest(`/afterSaleReason/delByIds/${id}`)
|
||||
return deleteRequest(`/order/afterSaleReason/delByIds/${id}`)
|
||||
}
|
||||
|
||||
// 添加售后原因
|
||||
export const addAfterSaleReason = (params) => {
|
||||
return postRequest(`/afterSaleReason`, params)
|
||||
return postRequest(`/order/afterSaleReason`, params)
|
||||
}
|
||||
|
||||
// 修改售后原因
|
||||
export const editAfterSaleReason = (id, params) => {
|
||||
return putRequest(`/afterSaleReason/update/${id}`, params)
|
||||
return putRequest(`/order/afterSaleReason/update/${id}`, params)
|
||||
}
|
||||
|
||||
// 售后服务单详情
|
||||
export const afterSaleOrderDetail = (sn) => {
|
||||
return getRequest(`/afterSale/${sn}`)
|
||||
return getRequest(`/order/afterSale/${sn}`)
|
||||
}
|
||||
|
||||
// 商家审核
|
||||
export const afterSaleSellerReview = (sn, params) => {
|
||||
return putRequest(`/afterSale/review/${sn}`, params)
|
||||
return putRequest(`/order/afterSale/review/${sn}`, params)
|
||||
}
|
||||
|
||||
// 商家确认收货
|
||||
export const afterSaleSellerConfirm = (sn, params) => {
|
||||
return putRequest(`/afterSale/confirm/${sn}`, params)
|
||||
return putRequest(`/order/afterSale/confirm/${sn}`, params)
|
||||
}
|
||||
|
||||
// 商家换货业务发货
|
||||
export const afterSaleSellerDelivery = (sn, params) => {
|
||||
return putRequest(`/afterSale/${sn}/delivery`, params)
|
||||
return putRequest(`/order/afterSale/${sn}/delivery`, params)
|
||||
}
|
||||
|
||||
// 获取交易投诉信息
|
||||
export const getOrderComplain = (params) => {
|
||||
return getRequest('/complain', params)
|
||||
return getRequest('/order/complain', params)
|
||||
}
|
||||
|
||||
// 获取交易投诉详细信息
|
||||
export const getOrderComplainDetail = (id) => {
|
||||
return getRequest(`/complain/${id}`)
|
||||
return getRequest(`/order/complain/${id}`)
|
||||
}
|
||||
|
||||
// 交易投诉对话
|
||||
export const addOrderCommunication = (params) => {
|
||||
return postRequest(`/complain/communication`, params)
|
||||
return postRequest(`/order/complain/communication`, params)
|
||||
}
|
||||
|
||||
// 平台仲裁
|
||||
export const orderComplete = (id, params) => {
|
||||
return putRequest(`/complain/complete/${id}`, params)
|
||||
return putRequest(`/order/complain/complete/${id}`, params)
|
||||
}
|
||||
|
||||
// 查询订单列表
|
||||
export const getOrderList = (params) => {
|
||||
return getRequest(`/orders`, params)
|
||||
return getRequest(`/order/order`, params)
|
||||
}
|
||||
|
||||
// 订单付款
|
||||
export const orderPay = (sn) => {
|
||||
return postRequest(`/orders/${sn}/pay`)
|
||||
return postRequest(`/order/order/${sn}/pay`)
|
||||
}
|
||||
|
||||
// 订单付款
|
||||
export const orderDetail = (sn) => {
|
||||
return getRequest(`/orders/${sn}`)
|
||||
return getRequest(`/order/order/${sn}`)
|
||||
}
|
||||
|
||||
// 修改订单价格
|
||||
export const updateOrderPrice = (sn, params) => {
|
||||
return putRequest(`/orders/update/${sn}/price`, params)
|
||||
return putRequest(`/order/order/update/${sn}/price`, params)
|
||||
}
|
||||
|
||||
// 获取订单日志
|
||||
|
@ -100,26 +100,26 @@ export const getOrderLog = (params) => {
|
|||
|
||||
// 订单取消
|
||||
export const orderCancel = (sn, params) => {
|
||||
return postRequest(`/orders/${sn}/cancel`, params)
|
||||
return postRequest(`/order/order/${sn}/cancel`, params)
|
||||
}
|
||||
|
||||
// 修改收货地址
|
||||
export const editOrderConsignee = (sn, params) => {
|
||||
return postRequest(`/orders/update/${sn}/consignee`, params)
|
||||
return postRequest(`/order/order/update/${sn}/consignee`, params)
|
||||
}
|
||||
|
||||
// 获取售后订单列表
|
||||
export const getAfterSaleOrderPage = (params) => {
|
||||
return getRequest('/afterSale/page', params)
|
||||
return getRequest('/order/afterSale/page', params)
|
||||
}
|
||||
|
||||
// 获取售后订单详情
|
||||
export const getAfterSaleOrderDetail = (sn) => {
|
||||
return getRequest(`/afterSale/get/${sn}`)
|
||||
return getRequest(`/order/afterSale/get/${sn}`)
|
||||
}
|
||||
//售后单查询物流
|
||||
export const getAfterSaleTraces = (sn) => {
|
||||
return getRequest(`/afterSale/getDeliveryTraces/${sn}`)
|
||||
return getRequest(`/order/afterSale/getDeliveryTraces/${sn}`)
|
||||
}
|
||||
// 获取商家选中的物流公司
|
||||
export const getLogisticsChecked = () => {
|
||||
|
@ -128,7 +128,7 @@ export const getLogisticsChecked = () => {
|
|||
|
||||
//查询物流
|
||||
export const getTraces = (sn, params) => {
|
||||
return postRequest(`/orders/getTraces/${sn}`, params)
|
||||
return postRequest(`/order/order/getTraces/${sn}`, params)
|
||||
}
|
||||
//获取发票列表
|
||||
export const getReceiptPage = (params) => {
|
||||
|
@ -136,27 +136,22 @@ export const getReceiptPage = (params) => {
|
|||
}
|
||||
//平台退款
|
||||
export const refundPrice = (afterSaleSn, params) => {
|
||||
return putRequest(`/afterSale/refund/${afterSaleSn}`, params)
|
||||
return putRequest(`/order/afterSale/refund/${afterSaleSn}`, params)
|
||||
}
|
||||
|
||||
|
||||
//平台收款记录
|
||||
export const paymentLog = (params) => {
|
||||
return getRequest(`/paymentLog`, params)
|
||||
return getRequest(`/order/paymentLog`, params)
|
||||
}
|
||||
|
||||
|
||||
//平台退款记录
|
||||
export const refundLog = (params) => {
|
||||
return getRequest(`/refundLog`, params)
|
||||
return getRequest(`/order/refundLog`, params)
|
||||
}
|
||||
|
||||
//售后单商家收货信息
|
||||
export const storeAddress = (sn) => {
|
||||
return getRequest(`/afterSale/getStoreAfterSaleAddress/${sn}`)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
*/
|
||||
export const setHomeSetup = params => {
|
||||
|
||||
return postRequest("/pageData/add", params);
|
||||
return postRequest("/other/pageData/add", params);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -21,7 +21,7 @@ export const setHomeSetup = params => {
|
|||
*/
|
||||
export const getHomeData = params => {
|
||||
|
||||
return getRequest(`/pageData/${params}`);
|
||||
return getRequest(`/other/pageData/${params}`);
|
||||
};
|
||||
|
||||
|
||||
|
@ -41,7 +41,7 @@ export const getHomeList = params => {
|
|||
*/
|
||||
export const updateHome = (id, params) => {
|
||||
|
||||
return putRequest(`/pageData/update/${id}`, params);
|
||||
return putRequest(`/other/pageData/update/${id}`, params);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -50,7 +50,7 @@ export const updateHome = (id, params) => {
|
|||
*/
|
||||
export const removePageHome = (id) => {
|
||||
|
||||
return deleteRequest(`/pageData/remove/${id}`);
|
||||
return deleteRequest(`/other/pageData/remove/${id}`);
|
||||
};
|
||||
|
||||
|
||||
|
@ -60,35 +60,33 @@ export const removePageHome = (id) => {
|
|||
*/
|
||||
export const releasePageHome = (id) => {
|
||||
|
||||
return putRequest(`/pageData/release/${id}`);
|
||||
return putRequest(`/other/pageData/release/${id}`);
|
||||
};
|
||||
|
||||
//管理员获取发送列表
|
||||
export const getMessagePage = (params) => {
|
||||
return getRequest(`/message`, params);
|
||||
return getRequest(`/other/message`, params);
|
||||
};
|
||||
//管理员获取发送列表
|
||||
export const sendMessage = (params) => {
|
||||
return postRequest(`/message`, params);
|
||||
return postRequest(`/other/message`, params);
|
||||
};
|
||||
//管理员获取发送详情列表
|
||||
export const getShopMessage = (params) => {
|
||||
return getRequest(`/message/store`, params);
|
||||
return getRequest(`/other/storeMessage`, params);
|
||||
};
|
||||
|
||||
//管理员获取会员意见反馈
|
||||
export const getMemberFeedback = (params) => {
|
||||
return getRequest(`/feedback`, params);
|
||||
return getRequest(`/other/feedback`, params);
|
||||
};
|
||||
|
||||
//管理员获取会员意见反馈
|
||||
export const getMemberFeedbackDetail = (id) => {
|
||||
return getRequest(`/feedback/${id}`);
|
||||
return getRequest(`/other/feedback/${id}`);
|
||||
};
|
||||
|
||||
//管理员获取发送详情列表
|
||||
export const getMemberMessage = (params) => {
|
||||
return getRequest(`/message/member`, params);
|
||||
return getRequest(`/other/memberMessage`, params);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -63,54 +63,45 @@ export const savePageData = (params) => {
|
|||
}
|
||||
//获取分类列表数据
|
||||
export const getArticleCategory = () => {
|
||||
return getRequest(`/article-category/all-children`)
|
||||
return getRequest(`/other/articleCategory/all-children`)
|
||||
}
|
||||
//文章分类添加
|
||||
export const saveArticleCategory = (params) => {
|
||||
return postRequest('/article-category', params)
|
||||
return postRequest('/other/articleCategory', params)
|
||||
}
|
||||
|
||||
//删除文章分类
|
||||
export const delArticleCategory = (id) => {
|
||||
return deleteRequest(`/article-category/${id}`)
|
||||
return deleteRequest(`/other/articleCategory${id}`)
|
||||
}
|
||||
//修改文章分类
|
||||
export const updateArticleCategory = (params, id) => {
|
||||
return putRequest(`/article-category/update/${id}`, params)
|
||||
return putRequest(`/other/articleCategory/update/${id}`, params)
|
||||
}
|
||||
//文章添加
|
||||
export const saveArticle = (params) => {
|
||||
return postRequest('/article', params, {"Content-Type": "application/json"})
|
||||
return postRequest('/other/article', params, {"Content-Type": "application/json"})
|
||||
}
|
||||
//文章修改
|
||||
export const updateArticle = (params) => {
|
||||
return putRequest(`/article/update/${params.id}`, params, {"Content-Type": "application/json"})
|
||||
return putRequest(`/other/article/update/${params.id}`, params, {"Content-Type": "application/json"})
|
||||
}
|
||||
//文章是否展示修改
|
||||
export const updateArticleStatus = (id,params) => {
|
||||
return putRequest(`/article/update/status/${id}`, params)
|
||||
return putRequest(`/other/article/update/status/${id}`, params)
|
||||
}
|
||||
//查看文章
|
||||
export const seeArticle = (id) => {
|
||||
return getRequest(`/article/${id}`)
|
||||
return getRequest(`/other/article/${id}`)
|
||||
}
|
||||
//获取文章列表数据
|
||||
export const getArticle = (params) => {
|
||||
return getRequest('/article/getByPage', params)
|
||||
return getRequest('/other/article/getByPage', params)
|
||||
}
|
||||
|
||||
|
||||
|
||||
//删除文章数据
|
||||
export const delArticle = (ids) => {
|
||||
return deleteRequest(`/article/delByIds/${ids}`)
|
||||
return deleteRequest(`/other/article/delByIds/${ids}`)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
|
||||
// 查询短信站内信信息
|
||||
export const getMessageData = params => {
|
||||
return getRequest("/message", params);
|
||||
return getRequest("/other/message", params);
|
||||
};
|
||||
//修改短信模板
|
||||
export const editSmsMessageTemplate = (id, params) => {
|
||||
|
@ -153,12 +153,12 @@ export const editInstantDeliveryImage = (bean, params) => {
|
|||
|
||||
//查询短信发送记录
|
||||
export const getSmsPage = (params) => {
|
||||
return getRequest(`sms`, params);
|
||||
return getRequest(`sms/sms`, params);
|
||||
};
|
||||
|
||||
//发送短信
|
||||
export const sendSms = (params) => {
|
||||
return postRequest(`sms`, params);
|
||||
return postRequest(`sms/sms`, params);
|
||||
};
|
||||
/*
|
||||
* 获取 支付支持设置开关
|
||||
|
|
|
@ -7,40 +7,40 @@ export const getBillPage = (params) => {
|
|||
}
|
||||
//查询店铺列表
|
||||
export const getShopListData = (params) => {
|
||||
return getRequest('/store', params)
|
||||
return getRequest('/store/store', params)
|
||||
}
|
||||
//禁用店铺
|
||||
export const disableShop = (id) => {
|
||||
return putRequest(`/store/disable/${id}`)
|
||||
return putRequest(`/store/store/disable/${id}`)
|
||||
}
|
||||
//开启店铺
|
||||
export const enableBrand = (id) => {
|
||||
return putRequest(`/store/enable/${id}`)
|
||||
return putRequest(`/store/store/enable/${id}`)
|
||||
}
|
||||
|
||||
//查询店铺详细
|
||||
export const getShopDetailData = (id, params) => {
|
||||
return getRequest(`/store/get/detail/${id}`, params)
|
||||
return getRequest(`/store/store/get/detail/${id}`, params)
|
||||
}
|
||||
|
||||
//增加店铺列表
|
||||
export const shopAdd = (params) => {
|
||||
return postRequest(`/store/add`, params)
|
||||
return postRequest(`/store/store/add`, params)
|
||||
}
|
||||
|
||||
//修改店铺列表
|
||||
export const shopEdit = (id,params) => {
|
||||
return putRequest(`/store/edit/${id}`, params)
|
||||
return putRequest(`/store/store/edit/${id}`, params)
|
||||
}
|
||||
|
||||
//审核店铺
|
||||
export const shopAudit = (id, passed) => {
|
||||
return putRequest(`/store/audit/${id}/${passed}`)
|
||||
return putRequest(`/store/store/audit/${id}/${passed}`)
|
||||
}
|
||||
|
||||
//查询店铺详情
|
||||
export const shopDetail = (id) => {
|
||||
return getRequest(`/store/get/detail/${id}`)
|
||||
return getRequest(`/store/store/get/detail/${id}`)
|
||||
}
|
||||
|
||||
|
||||
|
@ -74,10 +74,10 @@ export const pay = (id) => {
|
|||
|
||||
//获取所有商家
|
||||
export const getShopList = () => {
|
||||
return getRequest(`/store/all`)
|
||||
return getRequest(`/store/store/all`)
|
||||
}
|
||||
|
||||
//根据id获取店铺信息
|
||||
export const getShopByMemberId = (id) => {
|
||||
return getRequest(`/store/${id}/member`)
|
||||
return getRequest(`/store/store/${id}/member`)
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<div>
|
||||
<Upload
|
||||
style="display:inline-block;"
|
||||
:action="commonUrl + '/common/upload/file'"
|
||||
:action="commonUrl + '/common/common/upload/file'"
|
||||
:headers="accessToken"
|
||||
:on-success="handleSuccess"
|
||||
:on-error="handleError"
|
||||
|
|
|
@ -3,17 +3,17 @@ import {getRequest, putRequest, postRequest} from "@/libs/axios";
|
|||
|
||||
// 分页获取会员评价
|
||||
export const getMemberReview = params => {
|
||||
return getRequest("/memberEvaluation", params);
|
||||
return getRequest("/member/evaluation", params);
|
||||
};
|
||||
|
||||
// 根据id获取评价详情
|
||||
export const getMemberInfoReview = id => {
|
||||
return getRequest(`/memberEvaluation/get/${id}`);
|
||||
return getRequest(`/member/evaluation/get/${id}`);
|
||||
};
|
||||
|
||||
//回复评价信息
|
||||
export const replyMemberReview = (id, params) => {
|
||||
return putRequest(`/memberEvaluation/reply/${id}`, params);
|
||||
return putRequest(`/member/evaluation/reply/${id}`, params);
|
||||
};
|
||||
|
||||
// 获取会员注册统计列表
|
||||
|
@ -72,7 +72,7 @@ export const deleteMemberListData = ids => {
|
|||
};
|
||||
// 获取充值记录列表数据
|
||||
export const getUserRecharge = params => {
|
||||
return getRequest("/recharge", params);
|
||||
return getRequest("/wallet/recharge", params);
|
||||
};
|
||||
|
||||
// 获取预存款明细列表数据
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
*/
|
||||
export const setHomeSetup = params => {
|
||||
|
||||
return postRequest("/pageData/add", params);
|
||||
return postRequest("/other/pageData/add", params);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ export const setHomeSetup = params => {
|
|||
*/
|
||||
export const getHomeData = params => {
|
||||
|
||||
return getRequest(`/pageData/${params}`);
|
||||
return getRequest(`/other/pageData/${params}`);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue