mall: 完善后台发送优惠券

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

No files matched your search

+8
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
})
}
@@ -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({