import request from '@/utils/request'

// 查询优惠券发放记录列表
export function listStoreCouponUser(query) {
  return request({
    url: '/live/coupon/user/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券发放记录详细
export function getStoreCouponUser(id) {
  return request({
    url: '/live/coupon/user/' + id,
    method: 'get'
  })
}

// 新增优惠券发放记录
export function addStoreCouponUser(data) {
  return request({
    url: '/live/coupon/user',
    method: 'post',
    data: data
  })
}

// 修改优惠券发放记录
export function updateStoreCouponUser(data) {
  return request({
    url: '/live/coupon/user',
    method: 'put',
    data: data
  })
}

// 删除优惠券发放记录
export function delStoreCouponUser(id) {
  return request({
    url: '/live/coupon/user/' + id,
    method: 'delete'
  })
}

// 导出优惠券发放记录
export function exportStoreCouponUser(query) {
  return request({
    url: '/live/coupon/user/export',
    method: 'get',
    params: query
  })
}
