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

export function getXunJianDownloadUrlApi(idList) {
    return getReq('/ranger/inspection/api/v1/jobs/export', { jobIdList: idList.join(',') });
}

export function addXunJianTaskApi(data) {
    return postReq('/ranger/inspection/api/v1/jobs/temporary', data);
}
10 11 12 13 14 15 16 17 18 19 20 21

export function getRegionInfoApi(id) {
    return getReq(`/ranger/inspection/api/v1/region/${id}`);
}

export function addRegionApi(data) {
    return postReq('/ranger/inspection/api/v1/region', data);
}

export function editRegionApi(data) {
    return putReq(`ranger/inspection/api/v1/region`, data);
}