1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| import request from '@/config/axios'
|
| // TODO @dhb52:vo 缺少
|
| // 删除优惠劵
| export const deleteCoupon = async (id: number) => {
| return request.delete({
| url: `/promotion/coupon/delete?id=${id}`
| })
| }
|
| // 获得优惠劵分页
| export const getCouponPage = async (params: PageParam) => {
| return request.get({
| url: '/promotion/coupon/page',
| params: params
| })
| }
|
| // 发送优惠券
| export const sendCoupon = async (data: any) => {
| return request.post({
| url: '/promotion/coupon/send',
| data: data
| })
| }
|
|