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

// 获取残疾人信息
export const getInfo = (params) => request.basic.get(`/api/v1/disabled-people/${params.id}`)
// 更新残疾人信息
export const updateInfo = (params) => request.basic.put(`/api/v1/disabled-people/${params.id}`, params)

