import request from '@/utils/request'

// 查询股东信息列表
export function listInformation(query) {
  return request({
    url: '/crmShareholderInformation/findByPage',
    method: 'get',
    params: query
  })
}

// 查询股东信息详细
export function getInformation(id) {
  return request({
    url: '/basicData/information/' + id,
    method: 'get'
  })
}

// 新增股东信息
export function addInformation(data) {
  return request({
    url: '/basicData/information',
    method: 'post',
    data: data
  })
}

// 修改股东信息
export function updateInformation(data) {
  return request({
    url: '/basicData/information',
    method: 'put',
    data: data
  })
}

// 删除股东信息
export function delInformation(id) {
  return request({
    url: '/crmShareholderInformation/deleteAll',
    method: 'delete'
  })
}
