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
  })
}
