task.js 346 Bytes
Newer Older
1
import { getReq, postReq, putReq } from '@/utils';
水落(YangLei)'s avatar
水落(YangLei) committed
2 3 4 5 6 7 8 9

export function addTaskApi(data) {
    return postReq('/api/v1/schedules', data);
}

export function updateTaskApi(data) {
    return putReq('/api/v1/schedules', data);
}
10 11 12 13

export function getRangerInspectionTaskDetailApi(id) {
    return getReq(`/ranger/inspection/api/v1/jobs/tasks/${id}`);
}