/**
 *  区域模块接口
 */
import request from '@/utils/request'
// 获取项目列表
export const getProjectList = (params) => request.basic.get('/api/v1/customers', params)
// 获取单挑数据
export const getItem = (id) => request.basic.get(`/api/v1/customers/${id}`)
// 添加条目
export const createProject = (params) => request.basic.post('/api/v1/customers', params)
export const createHomer = (params) => request.basic.post('/api/v1/customers/up_lv', params)
// 更新role
export const updateItem = (id, params) => request.basic.put(`/api/v1/customers/${id}`, params)
// 删除数据
export const delItem = (id) => request.basic.delete(`/api/v1/customers/${id}`)

// 获取购房记录
export const getHouseOwners = (params) => request.basic.get('/api/v1/house-owners', params)

// 删除购房记录
export const delHouseOwner = (id) => request.basic.delete(`/api/v1/house-owners/${id}`)

// 上传文件
export const pushFile = (areaId, params) => request.basic.post(`/api/v1/house-owners/push/${areaId}`, params)
