From b6ce2139c926aa8a22184071e9f4ce53111c1ef9 Mon Sep 17 00:00:00 2001 From: PQZ Date: Tue, 24 Sep 2024 13:30:48 +0800 Subject: [PATCH] 1 --- src/api/base/coupon/index.js | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/api/base/coupon/index.js diff --git a/src/api/base/coupon/index.js b/src/api/base/coupon/index.js new file mode 100644 index 0000000..03c84fe --- /dev/null +++ b/src/api/base/coupon/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建用户卡券 +export function createCustomerCoupon(data) { + return request({ + url: '/base/customer-coupon/create', + method: 'post', + data: data + }) +} + +// 更新用户卡券 +export function updateCustomerCoupon(data) { + return request({ + url: '/base/customer-coupon/update', + method: 'put', + data: data + }) +} + +// 删除用户卡券 +export function deleteCustomerCoupon(id) { + return request({ + url: '/base/customer-coupon/delete?id=' + id, + method: 'delete' + }) +} + +// 获得用户卡券 +export function getCustomerCoupon(id) { + return request({ + url: '/base/customer-coupon/get?id=' + id, + method: 'get' + }) +} + +// 获得用户卡券分页 +export function getCustomerCouponPage(params) { + return request({ + url: '/base/customer-coupon/page', + method: 'get', + params + }) +} +// 导出用户卡券 Excel +export function exportCustomerCouponExcel(params) { + return request({ + url: '/base/customer-coupon/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file