import request from '@/utils/request'

// 查询户主信息列表
export function listAddress(query) {
  return request({
    url: '/szxc/address/list',
    method: 'get',
    params: query
  })
}

// 查询户主信息详细
export function getAddress(id) {
  return request({
    url: '/szxc/address/' + id,
    method: 'get'
  })
}

// 新增户主信息
export function addAddress(data) {
  return request({
    url: '/szxc/address',
    method: 'post',
    data: data
  })
}

// 修改户主信息
export function updateAddress(data) {
  return request({
    url: '/szxc/address',
    method: 'put',
    data: data
  })
}

// 删除户主信息
export function delAddress(id) {
  return request({
    url: '/szxc/address/' + id,
    method: 'delete'
  })
}
