提交优惠券,积分修改(领券部分没做)
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user