/**
 * 海邻招聘岗位接口
 */
import request from '@/utils/request'
// 获取招聘岗位列表
export const getDataList = (params) => request.basic.get('/api/v1/jobs', params)

// 获取单条数据
export const getItem = (id) => request.basic.get(`/api/v1/jobs/${id}`)
// 添加岗位
export const createItem = (params) => request.basic.post('/api/v1/jobs', params)
// 更新岗位
export const updateItem = (id, params) => request.basic.put(`/api/v1/jobs/${id}`, params)
// 删除岗位
export const delItem = (id) => request.basic.delete(`/api/v1/jobs/${id}`)
// 获取招聘岗位基地列表
export const getAreasList = (params) => request.basic.get('/api/v1/jobs/job_areas', params)
// 添加基地
export const createAreaItem = (params) => request.basic.post('/api/v1/jobs/job_areas', params)
