import request from '@/utils/request' //引入axios请求及拦截器
export default {
    //新增招聘需求
    addrecruitneeds(data) {
        return request({
            url: '/recruit/needs',
            method: 'post',
            data
        })
    },
    //修改招聘需求
    editrecruitneeds(data) {
        return request({
            url: '/recruit/needs/edit',
            method: 'post',
            data
        })
    },
    //查询招聘需求列表
    recruitneedslist(data) {
        return request({
            url: '/recruit/needs/list',
            method: 'get',
            params: data
        })
    },
    //获取招聘需求详细信息
    recruitneedsid(data) {
        return request({
            url: `/recruit/needs/${data}`,
            method: 'get',
        })
    },
}