/**
 *  区域模块接口
 */
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 createItem = (params) => request.basic.post('/api/v1/customers', 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 getCount=(params)=>request.basic.get('/api/v1/customers/count',params)

//创建工单
export const createOrderItem=(params)=> request.basic.post('/api/v1/orders', params)

//转入转出
export const inOutLogs=(params)=>request.basic.post('/api/v1/in-out-logs',params)

export const changeItem = (id, params) => request.basic.put(`/api/v1/customers/change/${id}`, params)


// 待完善对象列表
export const upDateArchives = (id, params) => request.basic.put(`/api/v1/archives/${id}`, params)
