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