import request from '@/utils/request'

// 查询viplist列表
export function listVipuser(query) {
  return request({
    url: '/system/vipuser/list',
    method: 'get',
    params: query
  })
}

// 查询viplist详细
export function getVipuser(id) {
  return request({
    url: '/system/vipuser/' + id,
    method: 'get'
  })
}

// 新增viplist
export function addVipuser(data) {
  return request({
    url: '/system/vipuser',
    method: 'post',
    data: data
  })
}

// 修改viplist
export function updateVipuser(data) {
  return request({
    url: '/system/vipuser',
    method: 'put',
    data: data
  })
}

// 删除viplist
export function delVipuser(id) {
  return request({
    url: '/system/vipuser/' + id,
    method: 'delete'
  })
}
