organization.js 420 Bytes
Newer Older
陈浩玮's avatar
陈浩玮 committed
1 2 3 4 5 6 7 8 9 10
import { delReq, getReq, postReq, putReq } from '@/utils';

function addJobsApi(data) {
    return postReq('/api/v1/jobs', data);
}

function updateJobsApi(data) {
    return putReq('/api/v1/jobs', data);
}

陈浩玮's avatar
陈浩玮 committed
11 12 13 14
function getOrganizationList(data) {
    return getReq('/api/v1/organizations', data);
}

陈浩玮's avatar
陈浩玮 committed
15
export default {
陈浩玮's avatar
陈浩玮 committed
16 17 18
    addJobs: addJobsApi,
    updateJobs: updateJobsApi,
    getOrganizationList: getOrganizationList,
陈浩玮's avatar
陈浩玮 committed
19
};