eight
2024-08-06 b927111af2533b89c27ee46f554fee9e54f8d8d5
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
  })
}