提交优惠券,积分修改(领券部分没做)

This commit is contained in:
2024-12-06 17:41:26 +08:00
parent 34c2cb76e7
commit 9bc3cb5584
20 changed files with 198 additions and 105 deletions

View File

@@ -79,4 +79,19 @@ export const getCurrentIntegral = async function() {
// 获取积分明细
export const getIntegralRecord = async function({ page, size }) {
return await GET(`/integral/getWxIntegralList/detail?page=${page}&size=${size}`);
}
}
// 获取优惠券列表
export const getRedeemableCoupons = async function({ page, size, type }) {
return await GET(`/wx/getRedeemableCoupons?page=${page}&size=${size}&type=${type}`);
}
// 获取优惠券列表
export const redeemCoupons = async function({ id, type }) {
return await POST(`/wx/redeemCoupons`, { id, type });
}
// 获取当前拥有的优惠券列表
export const getCurrentCoupons = async function() {
return await GET(`/wx/getCurrentCoupons`);
}