import request from '@/utils/request'

// 查询客户信息-客户列表
export function listClient(query) {
  return request({
    url: '/business/client/list',
    method: 'get',
    params: query
  })
}

// 查询客户信息-客户详细
export function getClient(id) {
  return request({
    url: '/business/client/' + id,
    method: 'get'
  })
}

// 新增客户信息-客户
export function addClient(data) {
  return request({
    url: '/business/client',
    method: 'post',
    data: data
  })
}

// 修改客户信息-客户
export function updateClient(data) {
  return request({
    url: '/business/client',
    method: 'put',
    data: data
  })
}

// 删除客户信息-客户
export function delClient(id) {
  return request({
    url: '/business/client/' + id,
    method: 'delete'
  })
}
