diff --git a/src/api/repository.js b/src/api/repository.js index 8ffe5b72c4c57a2e24122ca1d86fbd7d8f8e8894..13e0c82d2112efcd4a4a08bc254b334e71e57c57 100644 --- a/src/api/repository.js +++ b/src/api/repository.js @@ -50,3 +50,57 @@ export function updateSourcePlan(data) { }) } +export function batchProcessing(data, isTip) { + const headers = { + 'Content-Type': 'application/json; charset=UTF-8', + tip: 'no' + } + if (isTip) delete headers.tip + return request({ + timeout: 0, + url: '/node/BatchProcessing', + method: 'post', + headers, + data + }) +} + +export function updateUserPkgPlan(data) { + return request({ + url: '/updateUserPkgPlan', + method: 'post', + data + }) +} + +export function queryUserPkgPlan(data) { + return request({ + url: '/queryUserPkgPlan', + method: 'post', + data + }) +} + +export function delUserPkgPlan(data) { + return request({ + url: '/delUserPkgPlan', + method: 'post', + data + }) +} + +export function insertUserPkgPlan(data) { + return request({ + url: '/updatePkgClass', + method: 'post', + data + }) +} + +export function getPkgSize(data) { + return request({ + url: 'getPkgSize', + method: 'post', + data + }) +} \ No newline at end of file