mall: 完善后台发送优惠券

This commit is contained in:
owen
2023-08-26 22:29:55 +08:00
parent 3a15390090
commit beef6a0a94
6 changed files with 263 additions and 38 deletions

View File

@ -16,3 +16,11 @@ export const getCouponPage = async (params: PageParam) => {
params: params
})
}
// 发送优惠券
export const sendCoupon = async (data: any) => {
return request.post({
url: '/promotion/coupon/send',
data: data
})
}

View File

@ -73,6 +73,14 @@ export function getCouponTemplatePage(params: PageParam) {
})
}
// 获得可用于领取的优惠劵模板分页
export function getCanTakeCouponTemplatePage(params: PageParam) {
return request.get({
url: '/promotion/coupon-template/can-take-page',
params: params
})
}
// 导出优惠劵模板 Excel
export function exportCouponTemplateExcel(params: PageParam) {
return request.get({