import request from '@/utils/request'

// 列表
export function list(query) {
  return request({
    url: '/pu/ownershipLot/list',
    method: 'get',
    params: query
  })
}

// 详细
export function detail(id) {
  return request({
    url: '/pu/ownershipLot/' + id,
    method: 'get'
  })
}

// 新增
export function insert(data) {
  return request({
    url: '/pu/ownershipLot',
    method: 'post',
    data: data
  })
}

// 修改
export function update(data) {
  return request({
    url: '/pu/ownershipLot',
    method: 'put',
    data: data
  })
}

// 删除
export function del(id) {
  return request({
    url: '/pu/ownershipLot/' + id,
    method: 'delete'
  })
}

