修改会员信息少一个前缀问题

master
lemon橪 2022-02-23 16:15:37 +08:00
parent 7e8ff778f9
commit 800b91d406
2 changed files with 52 additions and 62 deletions

View File

@ -1,25 +1,28 @@
// 统一请求路径前缀在libs/axios.js中修改
import {getRequest, putRequest, postRequest, deleteRequest} from "@/libs/axios";
import {
getRequest,
putRequest,
postRequest,
deleteRequest,
} from "@/libs/axios";
// 获取分页
export const getMember = params => {
export const getMember = (params) => {
return getRequest("/member/getByPage", params);
};
// 分页获取会员评价
export const getMemberReview = params => {
export const getMemberReview = (params) => {
return getRequest("/member/evaluation/getByPage", params);
};
// 获取id
export const getMemberInfoReview = id => {
export const getMemberInfoReview = (id) => {
return getRequest(`/member/evaluation/get/${id}`);
};
// 删除评论
export const delMemberReview = id => {
export const delMemberReview = (id) => {
return putRequest(`/member/evaluation/delete/${id}`);
};
// 修改评价状态
@ -27,14 +30,13 @@ export const updateMemberReview = (id, params) => {
return getRequest(`/member/evaluation/updateStatus/${id}`, params);
};
// 添加或修改
export const insertOrUpdateSpec = params => {
export const insertOrUpdateSpec = (params) => {
return postRequest("/memberNoticeSenter/insertOrUpdate", params);
};
// 获取会员列表
export const getMemberListData = params => {
export const getMemberListData = (params) => {
return getRequest("/passport/member", params);
};
@ -45,11 +47,11 @@ export const getMemberInfoData = (id) => {
// 修改会员基本信息
export const updateMember = (params) => {
return putRequest(`/member`, params);
return putRequest(`/passport/member`, params);
};
// 添加会员基本信息
export const addMember = params => {
export const addMember = (params) => {
return postRequest(`/passport/member`, params);
};
@ -59,85 +61,79 @@ export const getMemberAll = () => {
};
// 增加或修改会员列表
export const operationMemberListData = params => {
export const operationMemberListData = (params) => {
return postRequest("/passport/member/insertOrUpdate", params);
};
// 增加或修改会员列表
export const deleteMemberListData = ids => {
export const deleteMemberListData = (ids) => {
return deleteRequest(`/passport/member/delByIds/${ids}`);
};
// 获取充值记录列表数据
export const getUserRecharge = params => {
export const getUserRecharge = (params) => {
return getRequest("/wallet/recharge", params);
};
// 获取预存款明细列表数据
export const getUserWallet = params => {
export const getUserWallet = (params) => {
return getRequest("/wallet/log", params);
};
// 获取提现申请列表数据
export const getUserWithdrawApply = params => {
export const getUserWithdrawApply = (params) => {
return getRequest("/wallet/withdrawApply", params);
};
// 审核提现申请
export const withdrawApply = params => {
export const withdrawApply = (params) => {
return postRequest("/wallet/withdrawApply", params);
};
//会员状态修改
export const updateMemberStatus = params => {
export const updateMemberStatus = (params) => {
return putRequest("/passport/member/updateMemberStatus", params);
};
// 获取会员注册统计列表
export const getMemberStatistics = params => {
export const getMemberStatistics = (params) => {
return getRequest("/statistics/member", params);
};
// 获取流量统计
export const getStatisticsList = params => {
export const getStatisticsList = (params) => {
return getRequest("/statistics/view/list", params);
};
// 获取会员历史流量
export const historyMemberChartList = () => {
return getRequest("/statistics/view/online/history");
}
};
//查询会员数量
export const getMemberNum = params => {
export const getMemberNum = (params) => {
return getRequest("/passport/member/num", params);
};
//查询会员历史积分
export const getHistoryPointData = (params) => {
return getRequest(`/member/memberPointsHistory/getByPage`, params)
}
return getRequest(`/member/memberPointsHistory/getByPage`, params);
};
//查询会员的收货地址
export const getMemberAddressData = (id, params) => {
return getRequest(`/member/address/${id}`, params)
}
return getRequest(`/member/address/${id}`, params);
};
//删除会员地址
export const removeMemberAddress = (id) => {
return deleteRequest(`/member/address/delById/${id}`)
}
return deleteRequest(`/member/address/delById/${id}`);
};
//添加会员收货地址
export const addMemberAddress = (params) => {
return postRequest(`/member/address`, params)
}
return postRequest(`/member/address`, params);
};
//修改会员收货地址
export const editMemberAddress = (params) => {
return putRequest(`/member/address`, params)
}
return putRequest(`/member/address`, params);
};
//查询会员预存款
export const getMemberWallet = (params) => {
return getRequest(`/wallet/wallet`, params)
}
return getRequest(`/wallet/wallet`, params);
};

View File

@ -2,12 +2,12 @@
import { getRequest, putRequest, postRequest } from "@/libs/axios";
// 分页获取会员评价
export const getMemberReview = params => {
export const getMemberReview = (params) => {
return getRequest("/member/evaluation", params);
};
// 根据id获取评价详情
export const getMemberInfoReview = id => {
export const getMemberInfoReview = (id) => {
return getRequest(`/member/evaluation/get/${id}`);
};
@ -17,18 +17,17 @@ export const replyMemberReview = (id, params) => {
};
// 获取会员注册统计列表
export const getStatisticsList = params => {
export const getStatisticsList = (params) => {
return getRequest("/statistics/view/list", params);
};
// 获取分页
export const getMember = params => {
export const getMember = (params) => {
return getRequest("/member/getByPage", params);
};
// 添加或修改
export const insertOrUpdateSpec = params => {
export const insertOrUpdateSpec = (params) => {
return postRequest("/memberNoticeSenter/insertOrUpdate", params);
};
//删除gUI个
@ -37,22 +36,17 @@ export const delSpec = (id, params) => {
};
// 获取会员列表
export const getMemberListData = params => {
export const getMemberListData = (params) => {
return getRequest("/member", params);
};
// 获取会员详情
export const getMemberInfoData = id => {
export const getMemberInfoData = (id) => {
return getRequest(`/member/${id}`);
};
// 修改会员基本信息
export const updateMember = params => {
return putRequest(`/member`, params);
};
// 添加会员基本信息
export const addMember = params => {
export const addMember = (params) => {
return postRequest(`/member`, params);
};
@ -62,30 +56,30 @@ export const getMemberAll = () => {
};
// 增加或修改会员列表
export const operationMemberListData = params => {
export const operationMemberListData = (params) => {
return postRequest("/member/insertOrUpdate", params);
};
// 增加或修改会员列表
export const deleteMemberListData = ids => {
export const deleteMemberListData = (ids) => {
return deleteRequest(`/member/delByIds/${ids}`);
};
// 获取充值记录列表数据
export const getUserRecharge = params => {
export const getUserRecharge = (params) => {
return getRequest("/wallet/recharge", params);
};
// 获取预存款明细列表数据
export const getUserDeposit = params => {
export const getUserDeposit = (params) => {
return getRequest("/deposit", params);
};
// 获取提现申请列表数据
export const getUserWithdrawApply = params => {
export const getUserWithdrawApply = (params) => {
return getRequest("/members/withdraw-apply", params);
};
// 审核提现申请
export const withdrawApply = params => {
export const withdrawApply = (params) => {
return postRequest("/members/withdraw-apply", params);
};