-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f365c4
commit b6a8647
Showing
10 changed files
with
1,288 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import request from '@/utils/request' | ||
|
||
const PREFIX_SERVICES = '/job/api/job/separation' | ||
|
||
export function querySeparateTask(data) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/tasks`, | ||
method: 'get', | ||
params: data | ||
}) | ||
} | ||
|
||
export function createSeparateTask(data) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/`, | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateSeparateTask(taskId) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/update/${taskId}/state`, | ||
method: 'post' | ||
}) | ||
} | ||
|
||
// 查询冷表中节点信息 | ||
export function queryColdNodeData(body) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/node/${body.projectId}/${body.repoName}`, | ||
method: 'get', | ||
params: { | ||
fullPath: body.fullPath | ||
} | ||
}) | ||
} | ||
|
||
// 查询冷表中版本信息 | ||
export function queryColdVersionData(body) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/version/${body.projectId}/${body.repoName}`, | ||
method: 'get', | ||
params: { | ||
packageKey: body.packageKey, | ||
version: body.version | ||
} | ||
}) | ||
} | ||
|
||
// 分页查询包 | ||
export function queryPackageData(body) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/package/page/${body.projectId}/${body.repoName}`, | ||
method: 'get', | ||
params: body.packageOption | ||
}) | ||
} | ||
|
||
// 分页查询版本 | ||
export function queryVersionData(body) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/version/page/${body.projectId}/${body.repoName}`, | ||
method: 'get', | ||
params: { | ||
packageKey: body.packageKey, | ||
separationDate: body.separationDate, | ||
option: body.versionOption | ||
} | ||
}) | ||
} | ||
|
||
// 分页查询节点 | ||
export function queryNodeData(body) { | ||
return request({ | ||
url: `${PREFIX_SERVICES}/node/page/${body.projectId}/${body.repoName}`, | ||
method: 'get', | ||
params: { | ||
fullPath: body.fullPath, | ||
separationDate: body.separationDate, | ||
option: body.nodeOption | ||
} | ||
}) | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.