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

// 获取单挑数据
export const getDetailCode = (params) => request.basic.get(`/api/v1/dictionaries`,params)
// 获取单挑数据
export const getDetailItem = (id) => request.basic.get(`/api/v1/dictionaries/${id}`)
// 添加条目
export const createDetailItem = (params) => request.basic.post('/api/v1/dictionaries', params)
// 更新role
export const updateDetailItem = (id, params) => request.basic.put(`/api/v1/dictionaries/${id}`, params)
// 删除数据
export const delDetailItem = (id) => request.basic.delete(`/api/v1/dictionaries/${id}`)

