import request from '@/utils/request'

// 查询优惠券用户领取记录列表
export function listStoreCouponIssueUser(query) {
  return request({
    url: '/store/storeCouponIssueUser/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券用户领取记录详细
export function getStoreCouponIssueUser(id) {
  return request({
    url: '/store/storeCouponIssueUser/' + id,
    method: 'get'
  })
}

// 新增优惠券用户领取记录
export function addStoreCouponIssueUser(data) {
  return request({
    url: '/store/storeCouponIssueUser',
    method: 'post',
    data: data
  })
}

// 修改优惠券用户领取记录
export function updateStoreCouponIssueUser(data) {
  return request({
    url: '/store/storeCouponIssueUser',
    method: 'put',
    data: data
  })
}

// 删除优惠券用户领取记录
export function delStoreCouponIssueUser(id) {
  return request({
    url: '/store/storeCouponIssueUser/' + id,
    method: 'delete'
  })
}

// 导出优惠券用户领取记录
export function exportStoreCouponIssueUser(query) {
  return request({
    url: '/store/storeCouponIssueUser/export',
    method: 'get',
    params: query
  })
}