import request from '@/utils/request'

// 分页查询
export const pageList = (query) => {
  return request({
    url: '/merchant/merchantAuditoriumSeatPrice/pageList',
    method: 'get',
    params: query
  })
}

// 新增/修改
export const saveAndEdit = (data) => {
  return request({
    url: '/merchant/merchantAuditoriumSeatPrice/insertOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除模板
export const deleteById = (id) => {
  return request({
    url: '/merchant/merchantAuditoriumSeatPrice/deleteById',
    method: 'delete',
    params: {id:id}
  })
}


// id获取详情
export function getSelectById(id) {
  return request({
    url: '/goods/goods/selectById?id=' + id,
    method: 'get'
  })
}
